Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#98 - Fix native worker compatibility #109

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"targets": [
{
"target_name": "fs-ext",
"target_name": "fs_ext",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: NODE_MODULE_INIT uses NODE_GYP_MODULE_NAME as an identifier, so this must be a valid identifier.

"include_dirs" : [ "<!(node -e \"require('nan')\")" ],
"sources": [
"fs-ext.cc"
Expand Down
4 changes: 3 additions & 1 deletion fs-ext.cc
Original file line number Diff line number Diff line change
Expand Up @@ -616,5 +616,7 @@ NAN_MODULE_INIT(init)
}

#if NODE_MODULE_VERSION > 1
NODE_MODULE(fs_ext, init)
NODE_MODULE_INIT() {
init(exports);
}
#endif
2 changes: 1 addition & 1 deletion fs-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

"use strict";

var binding = require('./build/Release/fs-ext');
var binding = require('./build/Release/fs_ext');

// Used by flock
function stringToFlockFlags(flag) {
Expand Down
Loading