Debian Codegraph @

js/src/tests/test262/language/expressions/arrow-function/syntax/early-errors/arrowparameters-bindingidentifier-no-arguments-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.1
7 description: >
8 ArrowParameters[Yield] :
9 BindingIdentifier[?Yield]
10 ...
11
12 No parameter named "arguments"
13
14 negative:
15 phase: parse
16 type: SyntaxError
17 flags: [onlyStrict]
18 ---*/
19
20 $DONOTEVALUATE();
21 var af = arguments => 1;