diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 19f343a7f174e4..dddde546c79f0d 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -742,7 +742,7 @@ uint32_t FastByteLengthUtf8( Local sourceStr = sourceValue.As(); if (!sourceStr->IsExternalOneByte()) { - return sourceStr->Utf8Length(isolate); + return sourceStr->Utf8LengthV2(isolate); } auto source = sourceStr->GetExternalOneByteStringResource(); // For short inputs, the function call overhead to simdutf is maybe