From dfd8ec1b3edb7f876235bec1138ecec4f2da748d Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 30 Nov 2015 03:33:42 -0800 Subject: Always pass an v8::Isolate* to the TryCatch ctor The parameter is required, and the old API will be deleted soon. BUG=none R=haraken@chromium.org TBR=rdevlin.cronin@chromium.org Review URL: https://codereview.chromium.org/1484723002 Cr-Commit-Position: refs/heads/master@{#362118} --- extensions/renderer/activity_log_converter_strategy.cc | 2 +- extensions/renderer/utils_native_handler.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions/renderer') diff --git a/extensions/renderer/activity_log_converter_strategy.cc b/extensions/renderer/activity_log_converter_strategy.cc index 3a8d612..1e32832 100644 --- a/extensions/renderer/activity_log_converter_strategy.cc +++ b/extensions/renderer/activity_log_converter_strategy.cc @@ -17,7 +17,7 @@ namespace { // "[HTMLElement]"). scoped_ptr SummarizeV8Value(v8::Isolate* isolate, v8::Local object) { - v8::TryCatch try_catch; + v8::TryCatch try_catch(isolate); v8::Isolate::DisallowJavascriptExecutionScope scope( isolate, v8::Isolate::DisallowJavascriptExecutionScope::THROW_ON_FAILURE); v8::Local name = v8::String::NewFromUtf8(isolate, "["); diff --git a/extensions/renderer/utils_native_handler.cc b/extensions/renderer/utils_native_handler.cc index 49ff32a..35b39eb 100644 --- a/extensions/renderer/utils_native_handler.cc +++ b/extensions/renderer/utils_native_handler.cc @@ -73,7 +73,7 @@ void UtilsNativeHandler::CreateClassWrapper( superclass}; v8::Local result; { - v8::TryCatch try_catch; + v8::TryCatch try_catch(GetIsolate()); try_catch.SetCaptureMessage(true); result = context()->CallFunction(func, arraysize(func_args), func_args); if (try_catch.HasCaught()) { -- cgit v1.1