Skip to content

Commit f73fcd3

Browse files
committed
src: use simdutf for two-byte string utf8 conversion in utf8 value
1 parent d459594 commit f73fcd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ static void MakeUtf8String(Isolate* isolate,
125125
size_t storage = static_cast<size_t>(value_length) * 3 + 1;
126126
target->AllocateSufficientStorage(storage);
127127

128-
size_t actual_length = simdutf::convert_utf16le_to_utf8(
129-
const_char16, value_length, target->out());
128+
size_t actual_length =
129+
simdutf::convert_utf16_to_utf8(const_char16, value_length, target->out());
130130
if (actual_length == 0 && value_length > 0) {
131131
actual_length =
132132
string->WriteUtf8V2(isolate,

0 commit comments

Comments
 (0)