内部からの巻き上げをtry
よりよく理解しようとしていたので、次のテストケースを作成しましたが、SyntaxError
.
それは私が期待していたものではありません。
console.log(x);
console.log(y);
console.log(z);
var x = 5;
try { var y = getY(); } catch(){}
console.log(x);
console.log(y);
console.log(z);
function getY(){
throw "ERR";
return 6;
}