tor-browser

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

test_sandbox_DOMException.js (393B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 * http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 function run_test() {
      5  var Cu = Components.utils;
      6  var sb = new Cu.Sandbox('http://www.example.com',
      7                          { wantGlobalProperties: ["DOMException"] });
      8  sb.notEqual = Assert.notEqual.bind(Assert);
      9  Cu.evalInSandbox('notEqual(DOMException, undefined);', sb);
     10 }