summaryrefslogtreecommitdiffstats
path: root/chrome/test/base/v8_unit_test.cc
diff options
context:
space:
mode:
authorjochen <jochen@chromium.org>2015-11-30 03:33:42 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-30 11:34:24 +0000
commitdfd8ec1b3edb7f876235bec1138ecec4f2da748d (patch)
treee592c87091c88da1ffb34f19bdcf711b079789ba /chrome/test/base/v8_unit_test.cc
parent47ce5feb1d13ce889da15f76f063a7978a0b5c37 (diff)
downloadchromium_src-dfd8ec1b3edb7f876235bec1138ecec4f2da748d.zip
chromium_src-dfd8ec1b3edb7f876235bec1138ecec4f2da748d.tar.gz
chromium_src-dfd8ec1b3edb7f876235bec1138ecec4f2da748d.tar.bz2
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}
Diffstat (limited to 'chrome/test/base/v8_unit_test.cc')
-rw-r--r--chrome/test/base/v8_unit_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/test/base/v8_unit_test.cc b/chrome/test/base/v8_unit_test.cc
index 9f382bf..b76e482 100644
--- a/chrome/test/base/v8_unit_test.cc
+++ b/chrome/test/base/v8_unit_test.cc
@@ -123,7 +123,7 @@ bool V8UnitTest::RunJavascriptTestF(const std::string& testFixture,
v8::Boolean::New(isolate, false),
v8::String::NewFromUtf8(isolate, "RUN_TEST_F"), params};
- v8::TryCatch try_catch;
+ v8::TryCatch try_catch(isolate);
v8::Local<v8::Value> result = function->Call(context->Global(), 3, args);
// The test fails if an exception was thrown.
EXPECT_FALSE(result.IsEmpty());
@@ -222,7 +222,7 @@ void V8UnitTest::ExecuteScriptInContext(const base::StringPiece& script_source,
v8::String::kNormalString,
script_name.size());
- v8::TryCatch try_catch;
+ v8::TryCatch try_catch(isolate);
v8::Local<v8::Script> script = v8::Script::Compile(source, name);
// Ensure the script compiled without errors.
if (script.IsEmpty())
@@ -267,7 +267,7 @@ void V8UnitTest::TestFunction(const std::string& function_name) {
v8::Local<v8::Function> function =
v8::Local<v8::Function>::Cast(functionProperty);
- v8::TryCatch try_catch;
+ v8::TryCatch try_catch(isolate);
v8::Local<v8::Value> result = function->Call(context->Global(), 0, NULL);
// The test fails if an exception was thrown.
if (result.IsEmpty())