Skip to content

Commit 51c2187

Browse files
committed
Fix Windows build?
1 parent 88db256 commit 51c2187

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/module/callback.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace ivm {
1414
*/
1515
auto CallbackHandle::Definition() -> Local<FunctionTemplate> {
1616
return Inherit<TransferableHandle>(MakeClass(
17-
"Callback", ConstructorFunction<decltype(&New), &New>{}
17+
"Callback", ConstructorFunction<decltype(&CallbackHandle::New), &CallbackHandle::New>{}
1818
));
1919
}
2020

src/module/external_copy_handle.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ExternalCopyHandle::~ExternalCopyHandle() {
2929

3030
auto ExternalCopyHandle::Definition() -> Local<FunctionTemplate> {
3131
return Inherit<TransferableHandle>(MakeClass(
32-
"ExternalCopy", ConstructorFunction<decltype(&New), &New>{},
32+
"ExternalCopy", ConstructorFunction<decltype(&ExternalCopyHandle::New), &ExternalCopyHandle::New>{},
3333
"totalExternalSize", StaticAccessor<decltype(&ExternalCopyHandle::TotalExternalSizeGetter), &ExternalCopyHandle::TotalExternalSizeGetter>{},
3434
"copy", MemberFunction<decltype(&ExternalCopyHandle::Copy), &ExternalCopyHandle::Copy>{},
3535
"copyInto", MemberFunction<decltype(&ExternalCopyHandle::CopyInto), &ExternalCopyHandle::CopyInto>{},

src/module/isolate_handle.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ IsolateHandle::IsolateHandle(shared_ptr<IsolateHolder> isolate) : isolate(std::m
4141

4242
auto IsolateHandle::Definition() -> Local<FunctionTemplate> {
4343
return Inherit<TransferableHandle>(MakeClass(
44-
"Isolate", ConstructorFunction<decltype(&New), &New>{},
44+
"Isolate", ConstructorFunction<decltype(&IsolateHandle::New), &IsolateHandle::New>{},
4545
"createSnapshot", FreeFunction<decltype(&CreateSnapshot), &CreateSnapshot>{},
4646
"compileScript", MemberFunction<decltype(&IsolateHandle::CompileScript<1>), &IsolateHandle::CompileScript<1>>{},
4747
"compileScriptSync", MemberFunction<decltype(&IsolateHandle::CompileScript<0>), &IsolateHandle::CompileScript<0>>{},

src/module/native_module_handle.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ NativeModuleHandle::NativeModuleHandle(shared_ptr<NativeModule> module) : module
5151

5252
auto NativeModuleHandle::Definition() -> Local<FunctionTemplate> {
5353
return Inherit<TransferableHandle>(MakeClass(
54-
"NativeModule", ConstructorFunction<decltype(&New), &New>{},
54+
"NativeModule", ConstructorFunction<decltype(&NativeModuleHandle::New), &NativeModuleHandle::New>{},
5555
"create", MemberFunction<decltype(&NativeModuleHandle::Create<1>), &NativeModuleHandle::Create<1>>{},
5656
"createSync", MemberFunction<decltype(&NativeModuleHandle::Create<0>), &NativeModuleHandle::Create<0>>{}
5757
));

src/module/reference_handle.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ ReferenceData::ReferenceData(
107107
*/
108108
auto ReferenceHandle::Definition() -> Local<FunctionTemplate> {
109109
return Inherit<TransferableHandle>(MakeClass(
110-
"Reference", ConstructorFunction<decltype(&New), &New>{},
110+
"Reference", ConstructorFunction<decltype(&ReferenceHandle::New), &ReferenceHandle::New>{},
111111
"deref", MemberFunction<decltype(&ReferenceHandle::Deref), &ReferenceHandle::Deref>{},
112112
"derefInto", MemberFunction<decltype(&ReferenceHandle::DerefInto), &ReferenceHandle::DerefInto>{},
113113
"release", MemberFunction<decltype(&ReferenceHandle::Release), &ReferenceHandle::Release>{},

0 commit comments

Comments
 (0)