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
Looks like this is a bug in DeadPropertyAssignmentElimination.
If I change new checkFlag to just checkFlag(), then flags.internal = true; is not eliminated. Probably something in the pass needs to handle NEW the same way it handles CALL
This only repros with SIMPLE_OPTIMIZATIONS. Advanced generates code that behaves as expected.
Repro:
Output:
checkFlag()
throws because there is noflags.internal = !0;
beforevar a = new checkFlag;
.Possibly related to #2874 ?
The text was updated successfully, but these errors were encountered: