Index: gin/isolate_holder.cc |
diff --git a/gin/isolate_holder.cc b/gin/isolate_holder.cc |
index 3c2bf9ab20dffa3061bda65d96e85b64225f9780..9e3109d1429a4c7e2ce7f675f1fe17cd99cfd439 100644 |
--- a/gin/isolate_holder.cc |
+++ b/gin/isolate_holder.cc |
@@ -11,6 +11,7 @@ |
#include "base/rand_util.h" |
#include "base/sys_info.h" |
#include "gin/array_buffer.h" |
+#include "gin/function_template.h" |
#include "gin/per_isolate_data.h" |
namespace gin { |
@@ -52,6 +53,7 @@ IsolateHolder::IsolateHolder() |
v8::Isolate::Scope isolate_scope(isolate_); |
v8::HandleScope handle_scope(isolate_); |
isolate_data_.reset(new PerIsolateData(isolate_)); |
+ CallbackHolderBase::EnsureRegistered(isolate_data_.get()); |
} |
IsolateHolder::IsolateHolder(v8::Isolate* isolate) |