Debian Codegraph @

js/src/tests/test262/language/statements/labeled/decl-fun-strict-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright (C) 2011 the V8 project authors. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5 /*---
6 esid: sec-labelled-statements
7 es6id: 13.13
8 description: >
9 function declarations in statement position in strict mode:
10 label: Statement
11 flags: [onlyStrict]
12 negative:
13 phase: parse
14 type: SyntaxError
15 ---*/
16
17 $DONOTEVALUATE();
18
19 label: function g() {}