summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testEvalInFrameEdgeCase.js
blob: d22a3575725b971aa1aaa55bd4b12f322bb2e09b (plain)
1
2
3
4
5
6
7
8
9
10
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);