1 2 3 4 5
function run_test() { var sb = new Cu.Sandbox('http://www.example.com'); sb.arr = [3, 4]; Assert.ok(Cu.evalInSandbox('!Array.isArray(arr);', sb)); }