func-decl-parse.js (497B)
1 // |reftest| error:SyntaxError 2 // Copyright (c) 2018 Mike Pennisi. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: use-strict-directive 7 es5id: 10.1.1-19-s 8 description: > 9 Strict Mode - Function code of a FunctionDeclaration contains Use 10 Strict Directive which appears at the start of the block 11 negative: 12 phase: parse 13 type: SyntaxError 14 flags: [noStrict] 15 ---*/ 16 17 $DONOTEVALUATE(); 18 19 function fun() { 20 "use strict"; 21 var static; 22 }