`SrcNoteType::StepSep` and `SrcNoteType::Breakpoint` are emitted at the same time: https://searchfox.org/mozilla-central/rev/d81e60336d9f498ad3985491dc17c2b77969ade4/js/src/frontend/BytecodeEmitter.cpp#218,223,227 ```cpp bool BytecodeEmitter::markStepBreakpoint() { ... if (!newSrcNote(SrcNoteType::StepSep)) { ... if (!newSrcNote(SrcNoteType::Breakpoint)) { ``` and the only consumer of `StepSep`
Bug 1849336 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
`SrcNoteType::StepSep` and `SrcNoteType::Breakpoint` are emitted at the same time: https://searchfox.org/mozilla-central/rev/d81e60336d9f498ad3985491dc17c2b77969ade4/js/src/frontend/BytecodeEmitter.cpp#218,223,227 ```cpp bool BytecodeEmitter::markStepBreakpoint() { ... if (!newSrcNote(SrcNoteType::StepSep)) { ... if (!newSrcNote(SrcNoteType::Breakpoint)) { ``` and the only consumer of `SrcNoteType::StepSep` is the following, where `SrcNoteType::Breakpoint` is also handled. https://searchfox.org/mozilla-central/rev/d7a8eadc28298c31381119cbf25c8ba14b8712b3/js/src/vm/BytecodeUtil-inl.h#215-221 ```cpp } else if (type == SrcNoteType::Breakpoint) { isBreakpoint = true; lastLinePC = snpc; } else if (type == SrcNoteType::StepSep) { seenStepSeparator = true; lastLinePC = snpc; } ```