Fix passing the wrong parameter.
This commit is contained in:
parent
caa5ea0316
commit
78ab726ec7
2 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue