tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

var-arguments-strict-init-strict.js (434B)


      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: >
      9    'for(var arguments = 42 in ...) {...}' throws SyntaxError in
     10    strict mode
     11 flags: [onlyStrict]
     12 negative:
     13  phase: parse
     14  type: SyntaxError
     15 ---*/
     16 
     17 $DONOTEVALUATE();
     18 
     19 for (var arguments = 42 in null) {}