Index: Source/bindings/v8/V8PerIsolateData.cpp |
diff --git a/Source/bindings/v8/V8PerIsolateData.cpp b/Source/bindings/v8/V8PerIsolateData.cpp |
index f1d1f27cdfcdb72c0ffc2e36151bd69bfe6436ba..0df50d2ccfabaae0c4396dc882300c7e404d2dc8 100644 |
--- a/Source/bindings/v8/V8PerIsolateData.cpp |
+++ b/Source/bindings/v8/V8PerIsolateData.cpp |
@@ -125,11 +125,11 @@ void V8PerIsolateData::setDOMTemplate(void* domTemplateKey, v8::Handle<v8::Funct |
currentDOMTemplateMap().add(domTemplateKey, UnsafePersistent<v8::FunctionTemplate>(m_isolate, templ)); |
} |
-v8::Local<v8::Context> V8PerIsolateData::ensureRegexContext() |
+v8::Local<v8::Context> V8PerIsolateData::ensureDomInJSContext() |
{ |
- if (!m_perContextDataForRegex) |
- m_perContextDataForRegex = V8PerContextData::create(v8::Context::New(m_isolate), DOMWrapperWorld::create()); |
- return m_perContextDataForRegex->context(); |
+ if (!m_domInJSPerContextData) |
+ m_domInJSPerContextData = V8PerContextData::create(v8::Context::New(m_isolate), DOMWrapperWorld::create()); |
+ return m_domInJSPerContextData->context(); |
} |
bool V8PerIsolateData::hasInstance(const WrapperTypeInfo* info, v8::Handle<v8::Value> value) |