Skip to content

Commit 8710318

Browse files
committedMay 28, 2019
fix code for ES5 again
1 parent 345731b commit 8710318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎tools/pack-wasm.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function getString(ptr) {
3535
var u16 = new Uint16Array(buffer);
3636
var offset = (ptr + 4) >>> 1;
3737
var length = u32[ptr >>> 2];
38-
return String.fromCharCode(...u16.subarray(offset, offset + length))
38+
return String.fromCharCode.apply(String, u16.subarray(offset, offset + length))
3939
}
4040
4141
function abort(message, filename, line, column) {

0 commit comments

Comments
 (0)
Please sign in to comment.