tor-browser

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

var-arguments-fn-strict-init-strict.js (477B)


      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 = 42 in ...) {...}' throws SyntaxError in
     10    strict mode within a 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 = 42 in null) {}
     21 }