tor-browser

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

block-local-use-before-initialization-in-declaration-statement.js (376B)


      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.1
      5 description: >
      6    let: block local use before initialization in declaration statement.
      7    (TDZ, Temporal Dead Zone)
      8 ---*/
      9 assert.throws(ReferenceError, function() {
     10  {
     11    let x = x + 1;
     12  }
     13 });
     14 
     15 reportCompare(0, 0);