tor-browser

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

strict-initializer-strict.js (420B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (C) 2016 the V8 project authors. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 /*---
      6 esid: sec-initializers-in-forin-statement-heads
      7 description: >
      8    for-in initializers in strict mode are prohibited
      9 negative:
     10  phase: parse
     11  type: SyntaxError
     12 flags: [onlyStrict]
     13 ---*/
     14 
     15 $DONOTEVALUATE();
     16 
     17 for (var a = 0 in {});