summaryrefslogtreecommitdiffstats
path: root/gin/function_template.cc
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-28 09:31:58 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-28 09:31:58 +0000
commit91cd4febe4c959d8256341e25a59a4d9dca9ca69 (patch)
treefd209b95a98db73a7f6e3b7edfc7cee40de6eb62 /gin/function_template.cc
parent8070b950de0375a10e5e79439bfea7dca26d51b1 (diff)
downloadchromium_src-91cd4febe4c959d8256341e25a59a4d9dca9ca69.zip
chromium_src-91cd4febe4c959d8256341e25a59a4d9dca9ca69.tar.gz
chromium_src-91cd4febe4c959d8256341e25a59a4d9dca9ca69.tar.bz2
Remove usage of deprecagted V8 API from gin/
R=mkwst@chromium.org TBR=abarth@chromium.org BUG=324225 Review URL: https://codereview.chromium.org/94413002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237750 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gin/function_template.cc')
-rw-r--r--gin/function_template.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gin/function_template.cc b/gin/function_template.cc
index e8878e0..07882e8 100644
--- a/gin/function_template.cc
+++ b/gin/function_template.cc
@@ -20,7 +20,8 @@ void InitFunctionTemplates(PerIsolateData* isolate_data) {
return;
}
- v8::Handle<v8::ObjectTemplate> templ(v8::ObjectTemplate::New());
+ v8::Handle<v8::ObjectTemplate> templ(
+ v8::ObjectTemplate::New(isolate_data->isolate()));
templ->SetInternalFieldCount(kNumberOfInternalFields);
isolate_data->SetObjectTemplate(&internal::CallbackHolderBase::kWrapperInfo,
templ);