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

Unified Diff: Source/bindings/core/v8/V8RecursionScope.h

Issue 648423003: Enforce ScriptForbiddenScope and make it non-fatal. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Trim superfluous includes Created 6 years, 2 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/bindings/core/v8/V8RecursionScope.h
diff --git a/Source/bindings/core/v8/V8RecursionScope.h b/Source/bindings/core/v8/V8RecursionScope.h
index e42a4fa1d3a10cac6aff27666576ac3cc90ecddc..c4a6248249f3bda2011824f1cae004ac2a9d60f7 100644
--- a/Source/bindings/core/v8/V8RecursionScope.h
+++ b/Source/bindings/core/v8/V8RecursionScope.h
@@ -62,8 +62,8 @@ public:
explicit V8RecursionScope(v8::Isolate* isolate)
: m_isolate(isolate)
{
- V8PerIsolateData::from(m_isolate)->incrementRecursionLevel();
RELEASE_ASSERT(!ScriptForbiddenScope::isScriptForbidden());
+ V8PerIsolateData::from(m_isolate)->incrementRecursionLevel();
// If you want V8 to autorun microtasks, this class needs to have a
// v8::Isolate::SuppressMicrotaskExecutionScope member.
ASSERT(!isolate->WillAutorunMicrotasks());

Powered by Google App Engine
This is Rietveld 408576698