Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/expressions/arrow-function/param-dflt-yield-id-strict.js

raw
1 // Copyright (C) 2016 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 esid: sec-arrow-function-definitions
5 es6id: 14.2
6 description: >
7 The `yield` token is interpreted as a FutureReservedWord within strict mode
8 info: |
9 ArrowFunction[In, Yield] :
10
11 ArrowParameters[?Yield] [no LineTerminator here] => ConciseBody[?In]
12 features: [default-parameters]
13 flags: [onlyStrict]
14 negative:
15 phase: parse
16 type: SyntaxError
17 ---*/
18
19 throw "Test262: This statement should not be evaluated.";
20
21 (x = yield) => {};