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