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