From 78ab726ec7b14ecea6240a684002c6910561ef5c Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 15 Apr 2014 15:39:13 +0800 Subject: [PATCH] Fix passing the wrong parameter. --- native_mate/constructor.cc | 2 +- native_mate/function_template.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/native_mate/constructor.cc b/native_mate/constructor.cc index fca79212776..2ab6459e8d3 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 711c04150a4..22bb6260d1e 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); }