tor-browser

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

identifier-let-allowed-as-lefthandside-expression-strict-strict.js (443B)


      1 // |reftest| error:SyntaxError
      2 'use strict';
      3 // Copyright (C) 2011 the V8 project authors. All rights reserved.
      4 // This code is governed by the BSD license found in the LICENSE file.
      5 /*---
      6 es6id: 13.6.0.1
      7 description: >
      8    for declaration:
      9    identifier "let" disallowed as lefthandside expression in strict mode
     10 flags: [onlyStrict]
     11 negative:
     12  phase: parse
     13  type: SyntaxError
     14 ---*/
     15 
     16 $DONOTEVALUATE();
     17 var o = { a: 1 };
     18 for (let in o) { }