Index: src/v8threads.cc |
diff --git a/src/v8threads.cc b/src/v8threads.cc |
index 010f50b3e4d7a91db2e5001fdd92f6fde3b8780e..a46b289ba1374b9e17dc3e18e823c86214784159 100644 |
--- a/src/v8threads.cc |
+++ b/src/v8threads.cc |
@@ -307,6 +307,9 @@ void ThreadManager::EagerlyArchiveThread() { |
void ThreadManager::FreeThreadResources() { |
+ DCHECK(!isolate_->has_pending_exception()); |
+ DCHECK(!isolate_->external_caught_exception()); |
+ DCHECK(isolate_->try_catch_handler() == NULL); |
isolate_->handle_scope_implementer()->FreeThreadResources(); |
isolate_->FreeThreadResources(); |
isolate_->debug()->FreeThreadResources(); |