blob: bef94a046a9e826adc3afd3d23f1f2089614e061 (
plain)
1
2
3
4
5
6
7
8
9
|
// evalInFrame with non-syntactic scopes.
load(libdir + "asserts.js");
load(libdir + "evalInFrame.js");
evalReturningScope(`
var x = 42;
assertEq(evalInFrame(0, "x"), 42);
`);
|