File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
packages/npm-packages/ruby-head-wasm-wasi Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ import { DefaultRubyVM } from "ruby-head-wasm-wasi/dist/node.cjs.js";
22
22
23
23
const main = async () => {
24
24
const binary = await fs .readFile (
25
+ // Tips: Replace the binary with debug info if you want symbolicated stack trace.
26
+ // (only nightly release for now)
27
+ // "./node_modules/ruby-head-wasm-wasi/dist/ruby.debug.wasm"
25
28
" ./node_modules/ruby-head-wasm-wasi/dist/ruby.wasm"
26
29
);
27
30
const module = await WebAssembly .compile (binary);
@@ -55,6 +58,9 @@ See [the example project](./example) for more details.
55
58
const main = async () => {
56
59
// Fetch and instntiate WebAssembly binary
57
60
const response = await fetch (
61
+ // Tips: Replace the binary with debug info if you want symbolicated stack trace.
62
+ // (only nightly release for now)
63
+ // "https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@latest/dist/ruby.debug.wasm"
58
64
" https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@latest/dist/ruby.wasm"
59
65
);
60
66
const buffer = await response .arrayBuffer ();
You can’t perform that action at this time.
0 commit comments