Source code

Revision control

Copy as Markdown

Other Tools

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);