func-decl-not-first-runtime.js (555B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: use-strict-directive 6 es5id: 10.1.1-20-s 7 description: > 8 Strict Mode - Function code of a FunctionDeclaration contains Use 9 Strict Directive which appears in the middle of the block 10 flags: [noStrict] 11 ---*/ 12 13 function fun() { 14 test262unresolvable = null; 15 "use strict"; 16 assert.sameValue(test262unresolvable, null); 17 } 18 fun(); 19 20 reportCompare(0, 0);