Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: src/api.cc

Issue 1128553002: Add ObjectTemplate::New() taking FunctionTemplate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add ObjectTemplate::New() taking FunctionTemplate. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api.cc
diff --git a/src/api.cc b/src/api.cc
index 9986df8bf2dd399a8ed836af7b6b353a5221d59c..4f16120df33ddbb4d096c4a3a33820b911986833 100644
--- a/src/api.cc
+++ b/src/api.cc
@@ -1198,8 +1198,9 @@ void FunctionTemplate::RemovePrototype() {
// --- O b j e c t T e m p l a t e ---
-Local<ObjectTemplate> ObjectTemplate::New(Isolate* isolate) {
- return New(reinterpret_cast<i::Isolate*>(isolate), Local<FunctionTemplate>());
+Local<ObjectTemplate> ObjectTemplate::New(
+ Isolate* isolate, v8::Handle<FunctionTemplate> constructor) {
+ return New(reinterpret_cast<i::Isolate*>(isolate), constructor);
}
« no previous file with comments | « include/v8.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698