Source code

Revision control

Copy as Markdown

Other Tools

/*
* Any copyright is dedicated to the Public Domain.
* Contributors: Gary Kwong and Jason Orendorff
*/
function f(y) {
eval("{ let z=2, w=y; (function () { w.p = 7; })(); }");
}
var x = {};
f(x);
assertEq(x.p, 7);
reportCompare(0, 0, "");