Skip to content

Commit 5a874af

Browse files
committed
fix
1 parent ead24e4 commit 5a874af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/loader/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function getStringImpl(buffer, ptr) {
4949
do {
5050
str += String.fromCharCode.apply(String, wtf16.subarray(off, off += STRING_CHUNKSIZE));
5151
len -= STRING_CHUNKSIZE;
52-
} while (length > STRING_CHUNKSIZE);
52+
} while (len > STRING_CHUNKSIZE);
5353
return str + String.fromCharCode.apply(String, wtf16.subarray(off, off + len));
5454
}
5555

lib/loader/umd/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var loader = (function(exports) {
5757
do {
5858
str += String.fromCharCode.apply(String, wtf16.subarray(off, off += STRING_CHUNKSIZE));
5959
len -= STRING_CHUNKSIZE;
60-
} while (length > STRING_CHUNKSIZE);
60+
} while (len > STRING_CHUNKSIZE);
6161

6262
return str + String.fromCharCode.apply(String, wtf16.subarray(off, off + len));
6363
}

0 commit comments

Comments
 (0)