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 658efad commit 1f88a7bCopy full SHA for 1f88a7b
lib/loader/index.js
@@ -39,7 +39,7 @@ const THIS = Symbol();
39
40
const STRING_SMALLSIZE = 192; // break-even point in V8
41
const STRING_CHUNKSIZE = 1024; // mitigate stack overflow
42
-const utf16 = new TextDecoder("utf-16le"); // != wtf16
+const utf16 = new TextDecoder("utf-16le", { fatal: true }); // != wtf16
43
44
/** Gets a string from memory. */
45
function getStringImpl(buffer, ptr) {
0 commit comments