Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions src/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -2181,16 +2181,12 @@ addToLibrary({
return x.startsWith('dynCall_') ? x : '_' + x;
},

$asyncLoad: (url) => {
return new Promise((resolve, reject) => {
readAsync(url).then(
(arrayBuffer) => {
$asyncLoad: async (url) => {
var arrayBuffer = await readAsync(url);
#if ASSERTIONS
assert(arrayBuffer, `Loading data file "${url}" failed (no arrayBuffer).`);
assert(arrayBuffer, `Loading data file "${url}" failed (no arrayBuffer).`);
#endif
resolve(new Uint8Array(arrayBuffer));
}, reject);
});
return new Uint8Array(arrayBuffer);
},

$alignMemory: (size, alignment) => {
Expand Down
2 changes: 1 addition & 1 deletion test/other/codesize/test_codesize_hello_dylink.gzsize
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6276
6274
2 changes: 1 addition & 1 deletion test/other/codesize/test_codesize_hello_dylink.jssize
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13831
13816
Loading