Skip to content

Commit f169334

Browse files
author
Ian Halliday
committed
Add legacy:: namespace qualifier to fix build
WorkaroundNewModuleInit API was moved to a new node::js::legacy namespace in the API. Updated the current abi module examples to follow suit.
1 parent 13ded2b commit f169334

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

1_hello_world/abi/hello.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void new_init(node::js::env env, node::js::value exports, node::js::value module
1919
// // For not I am working around the issue by assuming v8 and thunking into
2020
// // an init callback with a VM neutral signature.
2121
void Init(v8::Local<v8::Object> exports, v8::Local<v8::Object> module) {
22-
node::js::WorkaroundNewModuleInit(exports, module, new_init);
22+
node::js::legacy::WorkaroundNewModuleInit(exports, module, new_init);
2323
}
2424

2525
NODE_MODULE(addon, Init)

2_function_arguments/abi/addon.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void new_init(node::js::env env, node::js::value exports, node::js::value module
4141
// // For not I am working around the issue by assuming v8 and thunking into
4242
// // an init callback with a VM neutral signature.
4343
void Init(v8::Local<v8::Object> exports, v8::Local<v8::Object> module) {
44-
node::js::WorkaroundNewModuleInit(exports, module, new_init);
44+
node::js::legacy::WorkaroundNewModuleInit(exports, module, new_init);
4545
}
4646

4747
NODE_MODULE(addon, Init)

3_callbacks/abi/addon.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void new_init(node::js::env env, node::js::value exports, node::js::value module
2121
// // For not I am working around the issue by assuming v8 and thunking into
2222
// // an init callback with a VM neutral signature.
2323
void Init(v8::Local<v8::Object> exports, v8::Local<v8::Object> module) {
24-
node::js::WorkaroundNewModuleInit(exports, module, new_init);
24+
node::js::legacy::WorkaroundNewModuleInit(exports, module, new_init);
2525
}
2626

2727
NODE_MODULE(addon, Init)

4_object_factory/abi/addon.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void new_init(node::js::env env, node::js::value exports, node::js::value module
2222
// // For not I am working around the issue by assuming v8 and thunking into
2323
// // an init callback with a VM neutral signature.
2424
void Init(v8::Local<v8::Object> exports, v8::Local<v8::Object> module) {
25-
node::js::WorkaroundNewModuleInit(exports, module, new_init);
25+
node::js::legacy::WorkaroundNewModuleInit(exports, module, new_init);
2626
}
2727

2828
NODE_MODULE(addon, Init)

5_function_factory/abi/addon.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void new_init(node::js::env env, node::js::value exports, node::js::value module
2424
// // For not I am working around the issue by assuming v8 and thunking into
2525
// // an init callback with a VM neutral signature.
2626
void Init(v8::Local<v8::Object> exports, v8::Local<v8::Object> module) {
27-
node::js::WorkaroundNewModuleInit(exports, module, new_init);
27+
node::js::legacy::WorkaroundNewModuleInit(exports, module, new_init);
2828
}
2929

3030
NODE_MODULE(addon, Init)

0 commit comments

Comments
 (0)