From f65b70b5cb06eed78f53ce5d25407d66dc38f246 Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Tue, 10 Dec 2013 12:39:39 +0000 Subject: Don't use (almost) deprecated FunctionTemplate::New version, part 2. TBR=jochen@chromium.org,abarth@chromium.org BUG=324225 Review URL: https://codereview.chromium.org/111393003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@239761 0039d316-1c4b-4281-b951-d872f2087c98 --- gin/modules/console.cc | 2 +- gin/modules/module_registry.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gin/modules') diff --git a/gin/modules/console.cc b/gin/modules/console.cc index de86451..1484994 100644 --- a/gin/modules/console.cc +++ b/gin/modules/console.cc @@ -40,7 +40,7 @@ v8::Local Console::GetTemplate(v8::Isolate* isolate) { if (templ.IsEmpty()) { templ = ObjectTemplate::New(); templ->Set(StringToSymbol(isolate, "log"), - v8::FunctionTemplate::New(Log)); + v8::FunctionTemplate::New(isolate, Log)); data->SetObjectTemplate(&g_wrapper_info, templ); } return templ; diff --git a/gin/modules/module_registry.cc b/gin/modules/module_registry.cc index 160964f..77390b3 100644 --- a/gin/modules/module_registry.cc +++ b/gin/modules/module_registry.cc @@ -81,7 +81,7 @@ Local GetDefineTemplate(Isolate* isolate) { Local templ = data->GetFunctionTemplate( &g_wrapper_info); if (templ.IsEmpty()) { - templ = FunctionTemplate::New(Define); + templ = FunctionTemplate::New(isolate, Define); data->SetFunctionTemplate(&g_wrapper_info, templ); } return templ; -- cgit v1.1