summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testEvalInFrameEdgeCase.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testEvalInFrameEdgeCase.js')
-rw-r--r--js/src/jit-test/tests/basic/testEvalInFrameEdgeCase.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testEvalInFrameEdgeCase.js b/js/src/jit-test/tests/basic/testEvalInFrameEdgeCase.js
new file mode 100644
index 000000000..d22a35757
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testEvalInFrameEdgeCase.js
@@ -0,0 +1,11 @@
+load(libdir + "evalInFrame.js");
+
+function g() {
+ var x = 100;
+ return evalInFrame(2, "x");
+}
+function f() {
+ var x = 42;
+ return evalInFrame.call(null, 0, "g()");
+}
+assertEq(f.call(), 42);