Skip to content

Commit 78958aa

Browse files
committed
Simpler
1 parent a7747d4 commit 78958aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/file_packager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ def generate_js(data_target, data_files, metadata):
996996
Module['setStatus']?.(`Downloading data... (${totalLoaded}/${totalSize})`);
997997
return iterate();
998998
} else {
999-
const packageData = new Uint8Array(chunks.reduce((a, b) => a.concat(b), []));
999+
const packageData = new Uint8Array([].concat(...chunks));
10001000
callback(packageData.buffer);
10011001
}
10021002
};

0 commit comments

Comments
 (0)