Index: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp |
index a125c6dfee96d426c40ed7c74c94ba5b0e746c90..b01fec9de8d90057ffd32f26320064480c86195b 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp |
@@ -193,8 +193,9 @@ v8::Local<v8::Context> V8PerIsolateData::ensureScriptRegexpContext() { |
if (!m_scriptRegexpScriptState) { |
LEAK_SANITIZER_DISABLED_SCOPE; |
v8::Local<v8::Context> context(v8::Context::New(isolate())); |
- m_scriptRegexpScriptState = |
- ScriptState::create(context, DOMWrapperWorld::create(isolate())); |
+ m_scriptRegexpScriptState = ScriptState::create( |
+ context, |
+ DOMWrapperWorld::create(isolate(), DOMWrapperWorld::WorldType::RegExp)); |
} |
return m_scriptRegexpScriptState->context(); |
} |