Debian Codegraph @

js/src/tests/test262/language/directive-prologue/func-decl-inside-func-decl-parse.js

raw
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-15-s
8 description: >
9 Strict Mode - Function code that is part of a FunctionDeclaration
10 is strict function code if FunctionDeclaration 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 function fun() {
23 var static;
24 }
25 }