summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_bug1081990.js
blob: 80e37ac282119df6dd4db4538b082922c31a81aa (plain)
1
2
3
4
5
6
7
8
9
function run_test() {
  var sb = new Cu.Sandbox('http://www.example.com');
  sb.obj = {};
  sb.arr = [];
  sb.fun = function() {};
  Assert.ok(sb.eval('Object.getPrototypeOf(obj) == null'));
  Assert.ok(sb.eval('Object.getPrototypeOf(arr) == null'));
  Assert.ok(sb.eval('Object.getPrototypeOf(fun) == null'));
}