Debian Codegraph @

js/src/tests/test262/language/expressions/arrow-function/syntax/early-errors/arrowparameters-bindingidentifier-identifier-futurereservedword.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2015 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 es6id: 14.2
6 description: >
7 ArrowParameters[Yield] :
8 BindingIdentifier[?Yield]
9
10 (12.1)
11 BindingIdentifier[Yield] :
12 Identifier[~Yield] yield
13
14 Identifier :
15 IdentifierName but not ReservedWord
16
17 ReservedWord : FutureReservedWord
18
19 negative:
20 phase: parse
21 type: SyntaxError
22 ---*/
23
24 $DONOTEVALUATE();
25 var af = enum => 1;