From 5df3b4ab5cd4bfafd0ac758867b1395c787f84a3 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 28 May 2015 05:49:31 -0700 Subject: [PATCH] Update all callsites of the TryCatch ctor to pass an Isolate BUG=4134 R=vogelheim@chromium.org LOG=n Review URL: https://codereview.chromium.org/1154423004 Cr-Commit-Position: refs/heads/master@{#28678} --- samples/process.cc | 4 +- samples/shell.cc | 2 +- src/api.cc | 12 +- src/d8-debug.cc | 4 +- src/d8.cc | 6 +- src/execution.cc | 2 +- src/liveedit.cc | 2 +- src/messages.cc | 2 +- src/runtime/runtime-observe.cc | 2 +- test/cctest/compiler/function-tester.h | 4 +- test/cctest/test-accessors.cc | 2 +- test/cctest/test-api.cc | 228 +++++++++++++++++---------------- test/cctest/test-debug.cc | 14 +- test/cctest/test-decls.cc | 4 +- test/cctest/test-global-object.cc | 2 +- test/cctest/test-heap.cc | 4 +- test/cctest/test-log.cc | 2 +- test/cctest/test-parsing.cc | 14 +- test/cctest/test-strings.cc | 2 +- test/cctest/test-thread-termination.cc | 16 +-- 20 files changed, 166 insertions(+), 162 deletions(-) diff --git a/samples/process.cc b/samples/process.cc index 8d1cebe..c34ba7b 100644 --- a/samples/process.cc +++ b/samples/process.cc @@ -220,7 +220,7 @@ bool JsHttpRequestProcessor::ExecuteScript(Handle script) { // We're just about to compile the script; set up an error handler to // catch any exceptions the script might throw. - TryCatch try_catch; + TryCatch try_catch(GetIsolate()); // Compile the script and check for errors. Handle