10.4.3-1-17-s-strict.js (494B)
1 'use strict'; 2 // Copyright (c) 2012 Ecma International. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 es5id: 10.4.3-1-17-s 7 description: Strict Mode - checking 'this' (eval used within strict mode) 8 flags: [onlyStrict] 9 ---*/ 10 11 var global = this; 12 13 function testcase() { 14 assert.sameValue(eval("typeof this"), "undefined", 'eval("typeof this")'); 15 assert.notSameValue(eval("this"), global, 'eval("this")'); 16 } 17 testcase(); 18 19 reportCompare(0, 0);