| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 6a7a59a commit 9f282dd
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,7 @@ | |||
| 27 | 27 | ||
| 28 | 28 | # Reset this number to 0 on major V8 upgrades. | |
| 29 | 29 | # Increment by one for each non-official patch applied to deps/v8. | |
| 30 | - 'v8_embedder_string': '-node.14', | ||
| 30 | + 'v8_embedder_string': '-node.15', | ||
| 31 | 31 | ||
| 32 | 32 | # Enable disassembler for `--print-code` v8 options | |
| 33 | 33 | 'v8_enable_disassembler': 1, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -338,13 +338,12 @@ bool Debug::Load() { | |||
| 338 | 338 | void Debug::Unload() { | |
| 339 | 339 | ClearAllBreakPoints(); | |
| 340 | 340 | ClearStepping(); | |
| 341 | + if (FLAG_block_coverage) RemoveAllCoverageInfos(); | ||
| 341 | 342 | RemoveDebugDelegate(); | |
| 342 | 343 | ||
| 343 | 344 | // Return debugger is not loaded. | |
| 344 | 345 | if (!is_loaded()) return; | |
| 345 | 346 | ||
| 346 | - if (FLAG_block_coverage) RemoveAllCoverageInfos(); | ||
| 347 | - | ||
| 348 | 347 | // Clear debugger context global handle. | |
| 349 | 348 | GlobalHandles::Destroy(Handle<Object>::cast(debug_context_).location()); | |
| 350 | 349 | debug_context_ = Handle<Context>(); | |
@@ -643,8 +642,11 @@ void Debug::ApplyBreakPoints(Handle<DebugInfo> debug_info) { | |||
| 643 | 642 | } | |
| 644 | 643 | ||
| 645 | 644 | void Debug::ClearBreakPoints(Handle<DebugInfo> debug_info) { | |
| 645 | + // If we attempt to clear breakpoints but none exist, simply return. This can | ||
| 646 | + // happen e.g. CoverageInfos exit but no breakpoints are set. | ||
| 647 | + if (!debug_info->HasDebugBytecodeArray()) return; | ||
| 648 | + | ||
| 646 | 649 | DisallowHeapAllocation no_gc; | |
| 647 | - DCHECK(debug_info->HasDebugBytecodeArray()); | ||
| 648 | 650 | for (BreakIterator it(debug_info); !it.Done(); it.Next()) { | |
| 649 | 651 | it.ClearDebugBreak(); | |
| 650 | 652 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments