13.0-12-s-strict.js (591B)
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 info: | 7 Refer 13; 8 The production FunctionBody : SourceElementsopt is evaluated as follows: 9 es5id: 13.0-12-s 10 description: > 11 Strict Mode - SourceElements is not evaluated as strict mode code 12 when a Function constructor is contained in strict mode code and 13 the function constructor body is not strict 14 flags: [onlyStrict] 15 ---*/ 16 17 var _13_0_12_fun = new Function(" ","eval = 42;"); 18 _13_0_12_fun(); 19 20 reportCompare(0, 0);