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 821317e commit ea32e78
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ using namespace v8;

#include "Multipart.h"

#include "v8-fast-api-calls.h" // go with nodejs 20 for now

uint32_t FastByteLengthUtf8(Local<Value> receiver, const v8::FastOneByteString& source) {
return source.length;
}

v8::CFunction fast_byte_length_utf8(v8::CFunction::Make(FastByteLengthUtf8));

void uWS_log(const FunctionCallbackInfo<Value> &args) {

Isolate *isolate = args.GetIsolate();
Expand Down

0 comments on commit ea32e78

Please sign in to comment.