Skip to content

Commit

Permalink
Fix Debian testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Oct 11, 2024
1 parent b931b82 commit 1e84945
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

/* we dont assume <node/node_version.h> is installed */
#ifdef ISNODEJS
#if V8_MAJOR_VERSION == 10
#if V8_MAJOR_VERSION == 11
#define NODEJS_LTS_API 20
#elif V8_MAJOR_VERSION == 10
#define NODEJS_LTS_API 18
#elif V8_MAJOR_VERSION == 9
#define NODEJS_LTS_API 16
Expand Down Expand Up @@ -133,7 +135,7 @@ static v8::ScriptOrigin make_origin(std::string filename){
return v8::ScriptOrigin(ToJSString( filename.c_str()), v8::Integer::New(isolate, 0),
v8::Integer::New(isolate, 0), v8::False(isolate), v8::Local<v8::Integer>(),
v8::Local<v8::Value>(), v8::False(isolate), v8::False(isolate), v8::True(isolate));
#elif V8_VERSION_TOTAL < 1201
#elif V8_VERSION_TOTAL < 1201 || NODEJS_LTS_API == 20
return v8::ScriptOrigin(isolate,ToJSString( filename.c_str()), 0, 0, false, -1,
v8::Local<v8::Value>(), false, false, true);
#else
Expand Down

0 comments on commit 1e84945

Please sign in to comment.