diff --git a/native_mate/constructor.cc b/native_mate/constructor.cc index fca7921277..2ab6459e8d 100644 --- a/native_mate/constructor.cc +++ b/native_mate/constructor.cc @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE.chromium file. -#include "native_mate/wrappable_class.h" +#include "native_mate/constructor.h" #include "native_mate/function_template.h" #include "native_mate/object_template_builder.h" diff --git a/native_mate/function_template.cc b/native_mate/function_template.cc index 711c04150a..22bb6260d1 100644 --- a/native_mate/function_template.cc +++ b/native_mate/function_template.cc @@ -9,7 +9,7 @@ namespace mate { namespace internal { CallbackHolderBase::CallbackHolderBase(v8::Isolate* isolate) - : MATE_PERSISTENT_INIT(isolate, v8_ref_, v8::External::New(isolate)) { + : MATE_PERSISTENT_INIT(isolate, v8_ref_, v8::External::New(this)) { MATE_PERSISTENT_SET_WEAK(v8_ref_, this, &CallbackHolderBase::WeakCallback); }