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 12, 2024
1 parent 177444f commit 7a1bc97
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,8 @@ void SlowByteLengthUtf8(const FunctionCallbackInfo<Value>& args) {
printf("calling slow\n");
}

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

printf("calling fast\n");

void FastByteLengthUtf8(Local<Value> receiver, const v8::FastOneByteString& source) {
fwrite(source.data, 1, source.length, stdout);

return source.length;
}

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

0 comments on commit 7a1bc97

Please sign in to comment.