summaryrefslogtreecommitdiffstats
path: root/gin/wrappable_unittest.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/wrappable_unittest.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/wrappable_unittest.cc')
-rw-r--r--gin/wrappable_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gin/wrappable_unittest.cc b/gin/wrappable_unittest.cc
index da57cc3..c653866 100644
--- a/gin/wrappable_unittest.cc
+++ b/gin/wrappable_unittest.cc
@@ -75,12 +75,12 @@ void RegisterTemplate(v8::Isolate* isolate) {
PerIsolateData* data = PerIsolateData::From(isolate);
DCHECK(data->GetObjectTemplate(&MyObject::kWrapperInfo).IsEmpty());
- v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New();
+ v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isolate);
templ->SetInternalFieldCount(kNumberOfInternalFields);
templ->SetAccessorProperty(
StringToSymbol(isolate, "value"),
- v8::FunctionTemplate::New(MyObjectGetValue),
- v8::FunctionTemplate::New(MyObjectSetValue));
+ v8::FunctionTemplate::New(isolate, MyObjectGetValue),
+ v8::FunctionTemplate::New(isolate, MyObjectSetValue));
data->SetObjectTemplate(&MyObject::kWrapperInfo, templ);
}