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 fbd2f23 commit 177444f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,12 @@ using namespace v8;
#include "v8-fast-api-calls.h" // go with nodejs 20 for now

void SlowByteLengthUtf8(const FunctionCallbackInfo<Value>& args) {
std::terminate();
printf("calling slow\n");
}

uint32_t FastByteLengthUtf8(Local<Value> receiver, const v8::FastOneByteString& source) {

printf("calling fast\n");

fwrite(source.data, 1, source.length, stdout);

Expand Down

0 comments on commit 177444f

Please sign in to comment.