Source code
Revision control
Copy as Markdown
Other Tools
// --ion-eager --ion-offthread-compile=off
function f(t) {
for (var i = 0; i < 2; i++) {
try {
var x = 1;
new String(); // Creates a snapshot
x = 2;
new String(t); // Throws TypeError
} catch (e) {
assertEq(x, 2);
}
}
}
f(Symbol());