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

Unified Diff: src/inspector/v8-function-call.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 | « no previous file | src/inspector/v8-regex.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/inspector/v8-function-call.cc
diff --git a/src/inspector/v8-function-call.cc b/src/inspector/v8-function-call.cc
index b8c86d3da06cfdacdb5ce64e52d4c2e2e852275c..0fcca70cb7467d6bbcee33d7d560e4bb064e78ee 100644
--- a/src/inspector/v8-function-call.cc
+++ b/src/inspector/v8-function-call.cc
@@ -75,6 +75,8 @@ v8::Local<v8::Value> V8FunctionCall::call(bool& hadException,
}
v8::Local<v8::Value> V8FunctionCall::callWithoutExceptionHandling() {
+ v8::Context::Scope contextScope(m_context);
+
v8::Local<v8::Object> thisObject = v8::Local<v8::Object>::Cast(m_value);
v8::Local<v8::Value> value;
if (!thisObject->Get(m_context, m_name).ToLocal(&value))
« no previous file with comments | « no previous file | src/inspector/v8-regex.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698