Fix passing the wrong parameter.

This commit is contained in:
Cheng Zhao 2014-04-15 15:39:13 +08:00
parent caa5ea0316
commit 78ab726ec7
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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);
}