Index: Source/bindings/core/v8/V8PerIsolateData.cpp |
diff --git a/Source/bindings/core/v8/V8PerIsolateData.cpp b/Source/bindings/core/v8/V8PerIsolateData.cpp |
index 41aa5ef3b846c2819f832a0a5859f85f7657bd52..d9c7c0d5e91cacf12f47987d09eb3d9627bb5514 100644 |
--- a/Source/bindings/core/v8/V8PerIsolateData.cpp |
+++ b/Source/bindings/core/v8/V8PerIsolateData.cpp |
@@ -218,6 +218,13 @@ v8::Local<v8::Context> V8PerIsolateData::ensureScriptRegexpContext() |
return m_scriptRegexpScriptState->context(); |
} |
+void V8PerIsolateData::clearScriptRegexpContext() |
+{ |
+ if (m_scriptRegexpScriptState) |
+ m_scriptRegexpScriptState->disposePerContextData(); |
+ m_scriptRegexpScriptState.clear(); |
+} |
+ |
bool V8PerIsolateData::hasInstance(const WrapperTypeInfo* untrustedWrapperTypeInfo, v8::Local<v8::Value> value) |
{ |
return hasInstance(untrustedWrapperTypeInfo, value, m_domTemplateMapForMainWorld) |