var-arguments-fn-strict-strict.js (464B)
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-for-statement 8 description: > 9 'for(var arguments in ...) {...}' 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 for (var arguments in null) {} 21 }