func-expr-inside-func-decl-parse.js (521B)
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-16-s 8 description: > 9 Strict Mode - Function code that is part of a FunctionExpression 10 is strict function code if FunctionExpression is contained in use 11 strict 12 negative: 13 phase: parse 14 type: SyntaxError 15 flags: [noStrict] 16 ---*/ 17 18 $DONOTEVALUATE(); 19 20 function testcase() { 21 "use strict"; 22 var static; 23 }