blob: d24a065f5f2602eb74691c7c6a03b96178304d7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
function f(t) {
for (var i = 0; i < 2; i++) {
try {
var x = 1;
var {} = {};
x = 2;
var {} = t;
} catch (e) {
assertEq(x, 2);
}
}
}
for (var t of [{}, null]) {
f(t);
}
|