Skip to content

Commit 1f88a7b

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

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
@@ -39,7 +39,7 @@ const THIS = Symbol();
3939

4040
const STRING_SMALLSIZE = 192; // break-even point in V8
4141
const STRING_CHUNKSIZE = 1024; // mitigate stack overflow
42-
const utf16 = new TextDecoder("utf-16le"); // != wtf16
42+
const utf16 = new TextDecoder("utf-16le", { fatal: true }); // != wtf16
4343

4444
/** Gets a string from memory. */
4545
function getStringImpl(buffer, ptr) {

0 commit comments

Comments
 (0)