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
Link to reproduction (IMPORTANT, read below): Repl link
First, a disclaimer: I didn't actually write code this horrendous. This is produced by a compiler, hence the rather ... non-conventional JS code.
The REPL example above should be relatively clear. It appears Rollup's optimiser/DCE pass is incorrectly removing a variable assignment within a catch clause.
Expected Behavior
The variable assignment would not be removed. One would expect the above program to print Oh no.
Actual Behavior
The variable assignment is removed, and so result is never assigned. The program prints undefined.
The text was updated successfully, but these errors were encountered:
First, a disclaimer: I didn't actually write code this horrendous. This is produced by a compiler, hence the rather ... non-conventional JS code.
The REPL example above should be relatively clear. It appears Rollup's optimiser/DCE pass is incorrectly removing a variable assignment within a
catch
clause.Expected Behavior
The variable assignment would not be removed. One would expect the above program to print
Oh no
.Actual Behavior
The variable assignment is removed, and so
result
is never assigned. The program printsundefined
.The text was updated successfully, but these errors were encountered: