Skip to content

Commit

Permalink
Merge pull request #754 from permaweb/twilson63/feat-loader-wasm64-we…
Browse files Browse the repository at this point in the history
…avedrive-optional

feat(loader): weavedrive should be optional for wasm64
  • Loading branch information
twilson63 authored Jun 4, 2024
2 parents 7e21a53 + 0a35880 commit 1846962
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion loader/src/formats/wasm64-emscripten.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,9 @@ var Module = (() => {
function __asyncjs__weavedrive_open(c_filename, mode) {
return Asyncify.handleAsync(async () => {
const filename = UTF8ToString(Number(c_filename));
if (!Module.WeaveDrive) {
return Promise.resolve(null);
}
const drive = Module.WeaveDrive(Module, FS);
return await drive.open(filename);
});
Expand Down Expand Up @@ -5446,4 +5449,4 @@ var Module = (() => {
if (typeof exports === 'object' && typeof module === 'object')
module.exports = Module;
else if (typeof define === 'function' && define['amd'])
define([], () => Module);
define([], () => Module);
3 changes: 3 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1846962

Please sign in to comment.