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