Debian Codegraph @

js/src/tests/test262/language/statements/labeled/value-yield-strict-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright (C) 2013 the V8 project authors. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5
6 /*---
7 description: >
8 `yield` is a reserved identifier in strict mode code and may not be used
9 as a label.
10 es6id: 12.1.1
11 negative:
12 phase: parse
13 type: SyntaxError
14 flags: [onlyStrict]
15 ---*/
16
17 $DONOTEVALUATE();
18
19 yield: 1;