mirror of
https://github.com/electron/electron.git
synced 2026-02-13 16:45:14 -05:00
Fix passing the wrong parameter.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user