Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / bindings / core / v8 / V8RecursionScope.h
index e42a4fa..c4a6248 100644 (file)
@@ -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());