this-value-func-non-strict.js (433B)
1 // Copyright (C) 2016 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 description: > 5 Direct eval code has the same `this` binding as the calling context 6 (non-strict function scope) 7 esid: sec-performeval 8 flags: [noStrict] 9 ---*/ 10 11 var thisValue; 12 13 (function() { 14 thisValue = eval('this;'); 15 }()); 16 17 assert.sameValue(thisValue, this); 18 19 reportCompare(0, 0);