summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_sandbox_DOMException.js
blob: 04592c6db2724bb271e0896ff6a51faa160747c5 (plain)
1
2
3
4
5
6
7
8
9
10
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */

function run_test() {
  var Cu = Components.utils;
  var sb = new Cu.Sandbox('http://www.example.com',
                          { wantGlobalProperties: ["DOMException"] });
  sb.notEqual = Assert.notEqual.bind(Assert);
  Cu.evalInSandbox('notEqual(DOMException, undefined);', sb);
}