From 7a1bc97aed30ca05b8246e3a19ee3b60f97c9df9 Mon Sep 17 00:00:00 2001 From: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com> Date: Sun, 12 May 2024 02:02:16 +0200 Subject: [PATCH] Update addon.cpp --- src/addon.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/addon.cpp b/src/addon.cpp index 3abd8f31..d801c6ba 100644 --- a/src/addon.cpp +++ b/src/addon.cpp @@ -45,13 +45,8 @@ void SlowByteLengthUtf8(const FunctionCallbackInfo& args) { printf("calling slow\n"); } -uint32_t FastByteLengthUtf8(Local receiver, const v8::FastOneByteString& source) { - - printf("calling fast\n"); - +void FastByteLengthUtf8(Local 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));