summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/bug563000/eif-getter.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/jaeger/bug563000/eif-getter.js')
-rw-r--r--js/src/jit-test/tests/jaeger/bug563000/eif-getter.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/bug563000/eif-getter.js b/js/src/jit-test/tests/jaeger/bug563000/eif-getter.js
new file mode 100644
index 0000000000..e64492ce47
--- /dev/null
+++ b/js/src/jit-test/tests/jaeger/bug563000/eif-getter.js
@@ -0,0 +1,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");