early-errors-expression-binding-identifier-arguments-strict.js (588B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // Copyright 2017 the V8 project authors. All rights reserved. 4 // This code is governed by the BSD license found in the LICENSE file. 5 6 /*--- 7 author: Caitlin Potter <caitp@igalia.com> 8 esid: sec-identifiers-static-semantics-early-errors 9 description: > 10 If the source code matching this production is strict code, it is a 11 Syntax Error if BindingIdentifier is the IdentifierName arguments. 12 negative: 13 phase: parse 14 type: SyntaxError 15 flags: [onlyStrict] 16 features: [async-iteration] 17 ---*/ 18 19 $DONOTEVALUATE(); 20 21 (async function* arguments() { });