Skip to content

Commit

Permalink
Merge pull request #781 from permaweb/twilson63/chore-weavedrive-close
Browse files Browse the repository at this point in the history
chore: added weavedrive close handler
  • Loading branch information
twilson63 authored Jun 9, 2024
2 parents e9cf001 + 1e7503c commit 3f815f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loader/src/formats/wasm64-emscripten.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var Module = (() => {
readyPromiseReject = reject;
});

["_malloc", "_memory", "___asyncjs__weavedrive_open", "___asyncjs__weavedrive_read", "_handle", "___indirect_function_table", "onRuntimeInitialized"].forEach(prop => {
["_malloc", "_memory", "___asyncjs__weavedrive_open", "___asyncjs__weavedrive_read", "___asyncjs__weavedrive_close", "_handle", "___indirect_function_table", "onRuntimeInitialized"].forEach(prop => {
if (!Object.getOwnPropertyDescriptor(readyPromise, prop)) {
Object.defineProperty(readyPromise, prop, {
get: () => abort("You are getting " + prop + " on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"),
Expand Down

0 comments on commit 3f815f4

Please sign in to comment.