Skip to content

Commit

Permalink
Fix ENOTCAPABLE on opening preopened dirs on browser
Browse files Browse the repository at this point in the history
  • Loading branch information
kateinoigakukun committed Mar 29, 2022
1 parent bf2be79 commit aac287a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/npm-packages/ruby-wasm-wasi/src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ export const DefaultRubyVM = async (
await vm.setInstance(instance);

wasi.setMemory(instance.exports.memory as WebAssembly.Memory);
// Manually call `_initialize`, which is a part of reactor modoel ABI,
// because the WASI polyfill doesn't support it yet.
(instance.exports._initialize as Function)();
vm.initialize();

return {
Expand Down

0 comments on commit aac287a

Please sign in to comment.