Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/generators/yield-as-generator-expression-binding-identifier.js

raw
1 // Copyright (C) 2013 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 description: >
6 `yield` is not a valid BindingIdentifier for GeneratorExpressions.
7 es6id: 12.1.1
8 flags: [noStrict]
9 negative:
10 phase: parse
11 type: SyntaxError
12 features: [generators]
13 ---*/
14
15 throw "Test262: This statement should not be evaluated.";
16
17 var g = function* yield() {};