tor-browser

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

destructuring__proto__.js (417B)


      1 // |reftest| skip-if(!xulRuntime.shell)
      2 // |reftest| skip-if(!xulRuntime.shell)
      3 // bug 963641
      4 
      5 Reflect.parse("({ __proto__: null });");
      6 Reflect.parse("var { __proto__: x } = obj;");
      7 Reflect.parse("var [{ __proto__: y }] = obj;");
      8 Reflect.parse("[{ __proto__: y }] = arr;");
      9 Reflect.parse("({ __proto__: y } = obj);");
     10 
     11 if (typeof reportCompare === "function")
     12  reportCompare(true, true);
     13 
     14 
     15 
     16 print("Tests complete");