Skip to content

Commit c8ebedd

Browse files
committed
Used wrong variable name in new instance call
Signed-off-by: Vihan <vihan+github@vihan.org>
1 parent 53688c7 commit c8ebedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/support/target-registry.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ NAN_MODULE_INIT(TargetRegistryWrapper::Init) {
2525
v8::Local<v8::ObjectTemplate> tpl = Nan::New<v8::ObjectTemplate>();
2626
Nan::SetMethod(tpl, "lookupTarget", TargetRegistryWrapper::lookupTarget);
2727

28-
auto targetRegistry = Nan::NewInstance(targetRegistry).ToLocalChecked();
28+
auto targetRegistry = Nan::NewInstance(tpl).ToLocalChecked();
2929

3030
Nan::Set(target, Nan::New("TargetRegistry").ToLocalChecked(), targetRegistry);
3131
}

0 commit comments

Comments
 (0)