gecko/js/xpconnect/tests/unit/test_bug849730.js

8 lines
189 B
JavaScript

const Cu = Components.utils;
function run_test() {
var sb = new Cu.Sandbox('http://www.example.com');
sb.arr = [3, 4];
do_check_true(Cu.evalInSandbox('!Array.isArray(arr);', sb));
}