Skip to content

Commit

Permalink
Enable worker support
Browse files Browse the repository at this point in the history
Switching the declaration is all that's needed to use mmap-io
inside Workers (with node >= 10.*), because the library has no
static or global data.
  • Loading branch information
gcampax committed Sep 16, 2019
1 parent 673bb6d commit daeff71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mmap-io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -373,4 +373,4 @@ NAN_MODULE_INIT(Init) {

}

NODE_MODULE(mmap_io, Init)
NAN_MODULE_WORKER_ENABLED(mmap_io, Init);

0 comments on commit daeff71

Please sign in to comment.