summaryrefslogtreecommitdiffstats
path: root/js/src/tests/js1_8_5/regress/regress-541255-3.js
blob: e352429b2c12cbc3506f71794eeafcd775d6bf29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/licenses/publicdomain/
 * 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, "");