Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: Source/bindings/core/v8/WorkerScriptController.cpp

Issue 897523002: Handle rejected promises better for workers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tidying Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/core/v8/WorkerScriptController.h ('k') | Source/bindings/core/v8/v8.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/WorkerScriptController.cpp
diff --git a/Source/bindings/core/v8/WorkerScriptController.cpp b/Source/bindings/core/v8/WorkerScriptController.cpp
index b0f4bb56c54aef3088768e914b0d73c007ab762a..bbd4bf7912058bcf822ab14ef5ff049894a51b5e 100644
--- a/Source/bindings/core/v8/WorkerScriptController.cpp
+++ b/Source/bindings/core/v8/WorkerScriptController.cpp
@@ -107,6 +107,7 @@ WorkerScriptController::WorkerScriptController(WorkerGlobalScope& workerGlobalSc
, m_workerGlobalScope(workerGlobalScope)
, m_executionForbidden(false)
, m_executionScheduledToTerminate(false)
+ , m_rejectedPromises(RejectedPromises::create())
, m_globalScopeExecutionState(0)
{
m_isolate = V8PerIsolateData::initialize();
@@ -140,6 +141,9 @@ private:
WorkerScriptController::~WorkerScriptController()
{
+ m_rejectedPromises->dispose();
+ m_rejectedPromises.clear();
+
ThreadState::current()->removeInterruptor(m_interruptor.get());
m_world->dispose();
« no previous file with comments | « Source/bindings/core/v8/WorkerScriptController.h ('k') | Source/bindings/core/v8/v8.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698