In the fuzz test the debugger is not actually loaded...
R=jkummerow@chromium.org
Review URL: https://codereview.chromium.org/
304453003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21491
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
void Debug::Unload() {
ClearAllBreakPoints();
+ // Match unmatched PromiseHandlePrologue calls.
+ while (thread_local_.promise_on_stack_) PromiseHandleEpilogue();
+
// Return debugger is not loaded.
if (!IsLoaded()) return;
// Clear the script cache.
DestroyScriptCache();
- // Match unmatched PromiseHandlePrologue calls.
- while (thread_local_.promise_on_stack_) PromiseHandleEpilogue();
-
// Clear debugger context global handle.
GlobalHandles::Destroy(Handle<Object>::cast(debug_context_).location());
debug_context_ = Handle<Context>();