Skip to content

Commit a2f7067

Browse files
dcodeIOMaxGraey
andauthored
Update lib/loader/index.js
Co-authored-by: Max Graey <[email protected]>
1 parent 1f88a7b commit a2f7067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/loader/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function getStringImpl(buffer, ptr) {
4747
const wtf16 = new Uint16Array(buffer, ptr, len);
4848
if (len <= STRING_SMALLSIZE) return String.fromCharCode.apply(String, wtf16);
4949
try {
50-
return utf16.decode(wtf16, { fatal: true });
50+
return utf16.decode(wtf16);
5151
} catch {
5252
let str = "";
5353
let off = 0;

0 commit comments

Comments
 (0)