Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/generators/yield-as-logical-or-expression.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` expressions are not LogicalOrExpressions.
7 es6id: 12.1.1
8 negative:
9 phase: parse
10 type: SyntaxError
11 features: [generators]
12 ---*/
13
14 throw "Test262: This statement should not be evaluated.";
15
16
17 var g = function*() {
18 yield ? yield : yield;
19 };