Debian Codegraph @

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

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