Index: Source/bindings/v8/ScriptRegexp.cpp |
diff --git a/Source/bindings/v8/ScriptRegexp.cpp b/Source/bindings/v8/ScriptRegexp.cpp |
index 0d5df307a03afd9873317bd1afcc92990dc48ed1..e8f3c5fe6bde47382caeafac20b87cdccf3469d5 100644 |
--- a/Source/bindings/v8/ScriptRegexp.cpp |
+++ b/Source/bindings/v8/ScriptRegexp.cpp |
@@ -39,7 +39,7 @@ ScriptRegexp::ScriptRegexp(const String& pattern, TextCaseSensitivity caseSensit |
{ |
v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
v8::HandleScope handleScope(isolate); |
- v8::Context::Scope contextScope(V8PerIsolateData::from(isolate)->ensureRegexContext()); |
+ v8::Context::Scope contextScope(V8PerIsolateData::from(isolate)->ensureDomInJSContext()); |
v8::TryCatch tryCatch; |
unsigned flags = v8::RegExp::kNone; |
@@ -69,7 +69,7 @@ int ScriptRegexp::match(const String& string, int startFrom, int* matchLength) c |
v8::Isolate* isolate = v8::Isolate::GetCurrent(); |
v8::HandleScope handleScope(isolate); |
- v8::Context::Scope contextScope(V8PerIsolateData::from(isolate)->ensureRegexContext()); |
+ v8::Context::Scope contextScope(V8PerIsolateData::from(isolate)->ensureDomInJSContext()); |
v8::TryCatch tryCatch; |
v8::Local<v8::RegExp> regex = m_regex.newLocal(isolate); |