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

Unified Diff: Source/core/dom/Microtask.cpp

Issue 184043002: Only Microtask::performCheckpoint() if recursionLevel is 0 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ws Created 6 years, 9 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
Index: Source/core/dom/Microtask.cpp
diff --git a/Source/core/dom/Microtask.cpp b/Source/core/dom/Microtask.cpp
index d26cde4ac148de489c6491daa7430b6dce05f138..a4492c8b536c03db48c210b91f3f46d8ca046440 100644
--- a/Source/core/dom/Microtask.cpp
+++ b/Source/core/dom/Microtask.cpp
@@ -48,6 +48,8 @@ void Microtask::performCheckpoint()
{
V8PerIsolateData* isolateData = V8PerIsolateData::current();
ASSERT(isolateData);
+ ASSERT(!isolateData->recursionLevel());
+
if (isolateData->performingMicrotaskCheckpoint())
return;
isolateData->setPerformingMicrotaskCheckpoint(true);
« no previous file with comments | « no previous file | Source/core/html/parser/HTMLScriptRunner.cpp » ('j') | Source/core/html/parser/HTMLScriptRunner.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698