1 2 3 4 5
function run_test() { var sb = Cu.Sandbox('http://www.example.com'); var f = Cu.evalInSandbox('var f = function() {}; f;', sb); Assert.equal(f.name, ""); }