File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11language : node_js
22node_js :
3+ - " 20"
34 - " 11"
45 - " 8"
56env :
Original file line number Diff line number Diff line change 11{
22 "name" : " posix-semaphore" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " Blocking POSIX semaphores for Node.js" ,
55 "repository" : " https://github.com/dbousque/posix-semaphore" ,
66 "license" : " MIT" ,
1414 },
1515 "devDependencies" : {
1616 "child_process" : " ^1.0.2" ,
17- "shm-typed-array" : " ^0.0.10 "
17+ "shm-typed-array" : " ^0.1.0 "
1818 },
1919 "dependencies" : {
2020 "bindings" : " ~1.2.1" ,
Original file line number Diff line number Diff line change @@ -27,7 +27,12 @@ Semaphore::~Semaphore()
2727
2828void Semaphore::Init (v8::Local<v8::Object> exports)
2929{
30+ #if NODE_MAJOR_VERSION >= 18
31+ v8::Local<v8::Context> context = exports->GetCreationContextChecked ();
32+ #else
3033 v8::Local<v8::Context> context = exports->CreationContext ();
34+ #endif
35+
3136 Nan::HandleScope scope;
3237
3338 // Prepare constructor template
You can’t perform that action at this time.
0 commit comments