1 2 3 4 5 6 7 8 9
load(libdir + "evalInFrame.js"); this.__defineGetter__("someProperty", function () { evalInFrame(1, "x = 'success'"); }); function caller(obj) { var x = "failure"; obj.someProperty; return x; } assertEq(caller(this), "success");