tor-browser

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

const.js (362B)


      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    global and block scope const
      7 ---*/
      8 const z = 4;
      9 
     10 // Block local
     11 {
     12  const z = 5;
     13 }
     14 
     15 assert.sameValue(z, 4);
     16 
     17 if (true) {
     18  const z = 1;
     19  assert.sameValue(z, 1);
     20 }
     21 
     22 
     23 reportCompare(0, 0);