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

Unified Diff: src/inspector/v8-regex.cc

Issue 2841053002: [inspector] Add some context scopes to inspector code (Closed)
Patch Set: Drop unnecessary scope Created 3 years, 8 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 | « src/inspector/v8-function-call.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-regex.cc
diff --git a/src/inspector/v8-regex.cc b/src/inspector/v8-regex.cc
index 47af70d3604ae1c32bd860f9c1351b4e74d26d45..0bab4364c443d2309b5087654daf1d698b634cb5 100644
--- a/src/inspector/v8-regex.cc
+++ b/src/inspector/v8-regex.cc
@@ -49,6 +49,7 @@ int V8Regex::match(const String16& string, int startFrom,
v8::Isolate* isolate = m_inspector->isolate();
v8::HandleScope handleScope(isolate);
v8::Local<v8::Context> context = m_inspector->regexContext();
+ v8::Context::Scope contextScope(context);
v8::MicrotasksScope microtasks(isolate,
v8::MicrotasksScope::kDoNotRunMicrotasks);
v8::TryCatch tryCatch(isolate);
« no previous file with comments | « src/inspector/v8-function-call.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698