From d999271074c970f6c126557ab54c74994696dea9 Mon Sep 17 00:00:00 2001 From: "marja@chromium.org" Date: Wed, 12 Mar 2014 16:08:56 +0000 Subject: Get rid of even more Script::New calls in Chromium. Script::Compile is the right way (see previous changes in https://codereview.chromium.org/178663008 ). R=jochen@chromium.org BUG= Review URL: https://codereview.chromium.org/196573003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@256538 0039d316-1c4b-4281-b951-d872f2087c98 --- gin/wrappable_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gin') diff --git a/gin/wrappable_unittest.cc b/gin/wrappable_unittest.cc index ec067d5..4916153 100644 --- a/gin/wrappable_unittest.cc +++ b/gin/wrappable_unittest.cc @@ -235,7 +235,7 @@ TEST_F(WrappableTest, ErrorInObjectConstructorProperty) { " });" "})();"); EXPECT_FALSE(source.IsEmpty()); - v8::Handle script = v8::Script::New(source); + v8::Handle script = v8::Script::Compile(source); script->Run(); gin::TryCatch try_catch; -- cgit v1.1