mirror of https://github.com/sveltejs/svelte
fix: catch clause scope (#11209)
parent
d51075c154
commit
27d48c601f
@ -0,0 +1,16 @@
|
||||
<script>
|
||||
function test() {
|
||||
try {
|
||||
throw new TypeError("oops1");
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
|
||||
try {
|
||||
throw new TypeError("oops2");
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
}
|
||||
test();
|
||||
</script>
|
Loading…
Reference in new issue