Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/object/method-definition/yield-star-after-newline.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 A newline may not precede the `*` token in a `yield` expression.
7 features: [generators]
8 es6id: 14.4
9 negative:
10 phase: parse
11 type: SyntaxError
12 ---*/
13
14 throw "Test262: This statement should not be evaluated.";
15
16 var obj = {
17 *g() {
18 yield
19 * 1
20 }
21 };