arguments-fn-strict-list-middle-init-strict.js (463B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // Copyright (c) 2018 Mike Pennisi. All rights reserved. 4 // This code is governed by the BSD license found in the LICENSE file. 5 6 /*--- 7 esid: sec-variable-statement 8 description: > 9 arguments as local var identifier throws SyntaxError in strict mode within a 10 function declaration 11 flags: [onlyStrict] 12 negative: 13 phase: parse 14 type: SyntaxError 15 ---*/ 16 17 $DONOTEVALUATE(); 18 19 function f() { 20 var a, arguments = 42, b; 21 }