12.2.1-6-s-strict.js (437B)
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: 12.2.1-6-s 7 description: > 8 eval - a Function assigning into 'eval' will not throw any error 9 if contained within strict mode and its body does not start with 10 strict mode 11 flags: [onlyStrict] 12 ---*/ 13 14 var f = Function('eval = 42;'); 15 f(); 16 17 reportCompare(0, 0);