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));