The frontend shouldn't do any code-deleting optimizations because it makes the debugger unable to set breakpoints on that code

NEW
Unassigned

Status

()

Core
JavaScript Engine
3 years ago
3 months ago

People

(Reporter: fitzgen, Unassigned)

Tracking

(Blocks: 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

No breakpoints because no offsets.

Things like "if (true) \n..." get optimized, resulting in not being able to break on the conditional.
Blocks: 1074182
Quickest fix: In js/src/frontend/FoldConstants.cpp, in the second switch statement, try deleting
the code in "case PNK_IF:" and "case PNK_CONDITIONAL:".
Er, in the function Fold().
You need to log in before you can comment on or make changes to this bug.