Closed sisshiki1969 closed 5 years ago
Looks great.
This code doesn't work well:
function fail() { throw "something went wrong" }
function a() { throw 123 }
try {
try {
a()
} catch (x) {
console.log('-->', x);
};
fail()
} catch (e) {
console.log("->", e);
}
Sorry, I checked your reply now. I send PR for bug fix last night, but I don't know if it works for the bug you reported. I will check it tonight.
Now, catch parameter and block scope in catch clause are available.
limitations: In catch clause, function arguments can be get, but can not be changed through arguments[].
here is a test code.