// input
try {} catch (e) {
try {} catch (e) {
var e = "e";
console.log(e === "e");
}
}
console.log(e === undefined);
// output
console.log(e === void 0);
playground
// input
try {
throw 1
} catch (e) {
try {
throw 2
} catch (e) {
var e = "e";
console.log(e === "e");
}
}
console.log(e === undefined);
// output
try {
throw 1;
} catch {
try {
throw 2;
} catch (e) {
console.log(!0);
}
}
console.log(e === void 0);
playground
The input code does not throw "ReferenceError: e is not defined" error, but the output code does.
I guess this is caused by a bug in semantic.
playground
playground
The input code does not throw "ReferenceError: e is not defined" error, but the output code does.
I guess this is caused by a bug in semantic.