diff options
author | svenpanne@chromium.org <svenpanne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 12:39:39 +0000 |
---|---|---|
committer | svenpanne@chromium.org <svenpanne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-10 12:39:39 +0000 |
commit | f65b70b5cb06eed78f53ce5d25407d66dc38f246 (patch) | |
tree | e7cd43a2ff8bf2b4beea8061a59a59506ce4f0aa /gin/modules | |
parent | ca44717735510a1f24b99392beb53e171b46babd (diff) | |
download | chromium_src-f65b70b5cb06eed78f53ce5d25407d66dc38f246.zip chromium_src-f65b70b5cb06eed78f53ce5d25407d66dc38f246.tar.gz chromium_src-f65b70b5cb06eed78f53ce5d25407d66dc38f246.tar.bz2 |
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
Diffstat (limited to 'gin/modules')
-rw-r--r-- | gin/modules/console.cc | 2 | ||||
-rw-r--r-- | gin/modules/module_registry.cc | 2 |
2 files changed, 2 insertions, 2 deletions
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<ObjectTemplate> 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<FunctionTemplate> GetDefineTemplate(Isolate* isolate) { Local<FunctionTemplate> 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; |