Skip to content

Commit 9c8d4cb

Browse files
committed
fix
1 parent b0ac7bd commit 9c8d4cb

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/loader/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ function getStringImpl(buffer, ptr) {
5252
let str = "", off = 0;
5353
while (len > STRING_CHUNKSIZE) {
5454
str += String.fromCharCode.apply(String, wtf16.subarray(off, off += STRING_CHUNKSIZE));
55+
len -= STRING_CHUNKSIZE;
5556
}
5657
return str + String.fromCharCode.apply(String, wtf16.subarray(off));
5758
}

lib/loader/umd/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ var loader = (function(exports) {
6767

6868
while (len > STRING_CHUNKSIZE) {
6969
str += String.fromCharCode.apply(String, wtf16.subarray(off, off += STRING_CHUNKSIZE));
70+
len -= STRING_CHUNKSIZE;
7071
}
7172

7273
return str + String.fromCharCode.apply(String, wtf16.subarray(off));

0 commit comments

Comments
 (0)