Given:
{
let x = y;
let y = 42;
}
we get:
{
try {
throw undefined;
} catch (y) {
try {
throw undefined;
} catch (x) {
x = y;
y = 42;
}
}
}
If we are going to continue to use try/catch to emulate let we should at least
change it to:
{
try {
throw undefined;
} catch (x) {
x = y;
try {
throw undefined;
} catch (y) {
y = 42;
}
}
}
so that we get the temporary dead zone correct.
Original issue reported on code.google.com by arv@google.com on 4 Feb 2013 at 2:29
Original issue reported on code.google.com by
arv@google.com
on 4 Feb 2013 at 2:29