tor-browser

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

const-1.js (169B)


      1 // Arguments with default parameters can shadow const locals.
      2 
      3 "use strict";
      4 
      5 function f() {
      6    const x = 1;
      7    return (x = 0) => x;
      8 }
      9 
     10 var g = f();
     11 assertEq(g(), 0);