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

Unified Diff: Source/bindings/v8/ScriptRegexp.cpp

Issue 319753004: Enqueue Blink microtasks using V8's C++ API (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/bindings/v8/V8PerIsolateData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptRegexp.cpp
diff --git a/Source/bindings/v8/ScriptRegexp.cpp b/Source/bindings/v8/ScriptRegexp.cpp
index 98eccc8b5c93cceb86335382b6a041a74d77c1db..b4e25188288a581041f34fc2fdf34e220a281565 100644
--- a/Source/bindings/v8/ScriptRegexp.cpp
+++ b/Source/bindings/v8/ScriptRegexp.cpp
@@ -40,7 +40,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)->ensureDomInJSContext());
+ v8::Context::Scope contextScope(V8PerIsolateData::from(isolate)->ensureScriptRegexpContext());
v8::TryCatch tryCatch;
unsigned flags = v8::RegExp::kNone;
@@ -72,7 +72,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)->ensureDomInJSContext());
+ v8::Context::Scope contextScope(V8PerIsolateData::from(isolate)->ensureScriptRegexpContext());
v8::TryCatch tryCatch;
v8::Local<v8::RegExp> regex = m_regex.newLocal(isolate);
« no previous file with comments | « no previous file | Source/bindings/v8/V8PerIsolateData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698