Skip to content

Commit 1d33dde

Browse files
committed
Fix UTF16 test
1 parent a51f2e9 commit 1d33dde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Nodehun.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ Napi::Value Nodehun::getWordCharactersUTF16(const Napi::CallbackInfo& info) {
654654
if (chars == NULL) {
655655
return env.Undefined();
656656
} else {
657-
return Napi::String::New(env, ((char16_t*) chars));
657+
return Napi::String::New(env, ((char16_t*) chars), length);
658658
}
659659
}
660660

0 commit comments

Comments
 (0)