tor-browser

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

const-invalid-assignment-statement-body-for-in.js (339B)


      1 // Copyright (C) 2011 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 13.6.4.10_S1.a.i
      5 description: >
      6    const: invalid assignment in Statement body
      7 ---*/
      8 
      9 assert.throws(TypeError, function() {
     10  for (const x in [1, 2, 3]) { x++ }
     11 });
     12 
     13 reportCompare(0, 0);