summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug563000/eif-getter-newvar.js
blob: 87e6923401a4135ed999f7d3390eac5750b4c115 (plain)
1
2
3
4
5
6
7
8
9
load(libdir + "evalInFrame.js");

this.__defineGetter__("someProperty", function () { evalInFrame(1, "var x = 'success'"); });
function caller(obj) {
  var x = 'ignominy';
  obj.someProperty;
  return x;
}
assertEq(caller(this), "success");