blob: 4999ad87baf0576fb876cf1f079baf536413adcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// --ion-eager --ion-offthread-compile=off
function f(t) {
for (var i = 0; i < 2; i++) {
try {
var x = 1;
new String();
x = 2;
`${t}`; // Throws a TypeError
} catch (e) {
assertEq(x, 2);
}
}
}
f(Symbol());
|