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

Unified Diff: gin/object_template_builder.cc

Issue 113893005: [gin] Introduce Wrappable::GetObjectTemplate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years 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 | « gin/isolate_holder.cc ('k') | gin/wrappable.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/object_template_builder.cc
diff --git a/gin/object_template_builder.cc b/gin/object_template_builder.cc
index 6dc6d2fe849d51fc7f7446e3ec3be85de2d568ac..8bc271450ad47a9c17bae91bc614c71b21064334 100644
--- a/gin/object_template_builder.cc
+++ b/gin/object_template_builder.cc
@@ -3,11 +3,13 @@
// found in the LICENSE file.
#include "gin/object_template_builder.h"
+#include "gin/public/wrapper_info.h"
namespace gin {
ObjectTemplateBuilder::ObjectTemplateBuilder(v8::Isolate* isolate)
: isolate_(isolate), template_(v8::ObjectTemplate::New(isolate)) {
+ template_->SetInternalFieldCount(kNumberOfInternalFields);
}
ObjectTemplateBuilder::~ObjectTemplateBuilder() {
« no previous file with comments | « gin/isolate_holder.cc ('k') | gin/wrappable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698