tor-browser

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

namespace-import-compilation-2.js (267B)


      1 // |jit-test| module
      2 
      3 import * as ns from 'module1.js';
      4 
      5 let other = ns;
      6 
      7 const iterations = 2000;
      8 
      9 let x = 0;
     10 for (let i = 0; i < iterations; i++) {
     11    if (i == iterations / 2)
     12        other = 1;
     13    x += other.a;
     14 }
     15 
     16 assertEq(other.a, undefined);
     17 assertEq(x, NaN);