tor-browser

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

bug883490.js (427B)


      1 //|jit-test| error: TypeError
      2 function coerceForeign(stdlib, foreign)
      3 {
      4    "use asm";
      5 
      6    var g = foreign.g;
      7    var h = foreign.h;
      8 
      9    function f() {
     10        +g(0);
     11        +g(1);
     12        +g(2);
     13        +h(2);
     14        +h(3);
     15    }
     16 
     17    return f;
     18 }
     19 function blaat() {
     20 
     21 }
     22 
     23 var t = coerceForeign(undefined, {
     24  g: function(a) {
     25    if (a == 2)
     26      var blaat = new blaat();
     27  },
     28  h: function(b) {
     29    print(b);
     30  }
     31 })
     32 
     33 t();