You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat destructuring-catch-scope.js | esbuild --bundle | node
[stdin]:5
} catch ({ [a]: b, 3: d = def }) {
^
ReferenceError: a is not defined
esbuild minify:
$ cat destructuring-catch-scope.js | esbuild --minify | node
[stdin]:1
let a=1,def="PASS2";try{throw["FAIL2","PASS1"]}catch({[l]:e,3:t=o}){let l=0,o="FAIL3";console.log(e,t)}
^
ReferenceError: l is not defined
The text was updated successfully, but these errors were encountered:
Mentioned in #1305 (comment)
Expected:
Using
--bundle
with e1bb432:esbuild minify:
The text was updated successfully, but these errors were encountered: