early-errors-object-method-arguments-in-formal-parameters-strict.js (468B)
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 <brian.terlson@microsoft.com> 8 esid: pending 9 description: It is a SyntaxError if FormalParameters contains arguments 10 negative: 11 phase: parse 12 type: SyntaxError 13 flags: [onlyStrict] 14 features: [async-functions] 15 ---*/ 16 17 $DONOTEVALUATE(); 18 ({ 19 async foo (arguments) { } 20 })