Reviewers: rossberg,
Description:
Do not crash when switch threads while debugging.
This way, debugging promises will stop working correctly, but
we won't crash. This should not occur in the wild anyways.
[email protected]
Please review this at https://codereview.chromium.org/296553003/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+3, -0 lines):
M src/debug.cc
Index: src/debug.cc
diff --git a/src/debug.cc b/src/debug.cc
index
b13a1631573b2aa3db7bb26e4a302bcc9317ce72..5e9710d6ef9681512ac4a52b335cb4bd9dbf1e47
100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -511,6 +511,9 @@ void Debug::ThreadInit() {
thread_local_.debugger_entry_ = NULL;
thread_local_.has_pending_interrupt_ = false;
thread_local_.restarter_frame_function_pointer_ = NULL;
+
+ promise_catch_handlers_.Clear();
+ promise_getters_.Clear();
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.