summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_bug604362.js
blob: 7adcfab96cd8b7db7e64d0bcd2dd1b74759efee4 (plain)
1
2
3
4
5
6
7
8
9
10
function run_test() {
  var sp = Cc["@mozilla.org/systemprincipal;1"].
           createInstance(Ci.nsIPrincipal);
  var s = Cu.Sandbox(sp);
  s.a = [];
  s.Cu = Cu;
  s.C = Components;
  s.notEqual = notEqual;
  Cu.evalInSandbox("notEqual(Cu.import, undefined);", s);
}