Skip to content

Commit

Permalink
Update addon.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed May 11, 2024
1 parent 7fb9c26 commit fbd2f23
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,14 @@ PerContextData *Main(Local<Object> exports) {

//FunctionTemplate::New(isolate, uWS_log)->GetFunction(isolate->GetCurrentContext()).ToLocalChecked()

//left indented are for nodejs 20, else is for 21
FunctionTemplate::New(isolate,
SlowByteLengthUtf8,

Local<Value>(),

Local<v8::Signature>(),
0,
v8::ConstructorBehavior::kThrow,
v8::SideEffectType::kHasNoSideEffect,
&fast_byte_length_utf8)->GetFunction(isolate->GetCurrentContext()).ToLocalChecked()
Expand Down

0 comments on commit fbd2f23

Please sign in to comment.