func-decl-no-semi-parse.js (468B)
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-2-s 8 description: > 9 Strict Mode - Use Strict Directive Prologue is ''use strict'' 10 which lost the last character ';' 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 }