Debian Codegraph @

js/src/tests/test262/language/statements/async-function/early-errors-declaration-arguments-in-formal-parameters-strict.js

raw
1 // |reftest| error:SyntaxError
2 'use strict';
3 // Copyright 2016 Microsoft, Inc. All rights reserved.
4 // This code is governed by the BSD license found in the LICENSE file.
5
6 /*---
7 author: Brian Terlson <[email protected]>
8 esid: pending
9 description: It is a SyntaxError if FormalParameters contains arguments in strict mode
10 negative:
11 phase: parse
12 type: SyntaxError
13 flags: [onlyStrict]
14 ---*/
15
16 $DONOTEVALUATE();
17
18 async function foo (arguments) { }
19