Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp

Issue 2735973006: Bindings: Separate WorldIdConstants into WorldTypes and WorldId (Closed)
Patch Set: rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
}

Powered by Google App Engine
This is Rietveld 408576698