We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9acf6af commit caf58f2Copy full SHA for caf58f2
1 file changed
src/node_buffer.cc
@@ -742,7 +742,7 @@ uint32_t FastByteLengthUtf8(
742
Local<String> sourceStr = sourceValue.As<String>();
743
744
if (!sourceStr->IsExternalOneByte()) {
745
- return sourceStr->Utf8Length(isolate);
+ return sourceStr->Utf8LengthV2(isolate);
746
}
747
auto source = sourceStr->GetExternalOneByteStringResource();
748
// For short inputs, the function call overhead to simdutf is maybe
0 commit comments