var-eval-strict-strict.js (406B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // Copyright (c) 2012 Ecma International. 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: "'for(var eval in ...) {...}' throws SyntaxError in strict mode" 9 flags: [onlyStrict] 10 negative: 11 phase: parse 12 type: SyntaxError 13 ---*/ 14 15 $DONOTEVALUATE(); 16 17 for (var eval in null) {}