Skip to content

Commit a5feda9

Browse files
add globalThis.rubyVM to allow writing ruby in dev console
1 parent 01a80b8 commit a5feda9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/npm-packages/ruby-wasm-wasi/src/browser.script.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export const main = async (pkg: { name: string, version: string }) => {
1010

1111
vm.printVersion();
1212

13+
globalThis.rubyVM = vm;
14+
1315
runRubyScriptsInHtml(vm);
1416
};
1517

0 commit comments

Comments
 (0)