From 1e7503ca2f16706e20c67c77fa6fb8e45779ca58 Mon Sep 17 00:00:00 2001 From: Tom Wilson Date: Sun, 9 Jun 2024 09:29:38 +0000 Subject: [PATCH] chore: added weavedrive close handler --- loader/src/formats/wasm64-emscripten.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/src/formats/wasm64-emscripten.cjs b/loader/src/formats/wasm64-emscripten.cjs index 24e491cdd..1fd0bf463 100644 --- a/loader/src/formats/wasm64-emscripten.cjs +++ b/loader/src/formats/wasm64-emscripten.cjs @@ -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"),