File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const main = async () => {
28
28
const binary = await fs .readFile (
29
29
// Tips: Replace the binary with debug info if you want symbolicated stack trace.
30
30
// (only nightly release for now)
31
- // "./node_modules/ruby-head-wasm-wasi/dist/ruby.debug.wasm"
31
+ // "./node_modules/ruby-head-wasm-wasi/dist/ruby.debug+stdlib .wasm"
32
32
" ./node_modules/ruby-head-wasm-wasi/dist/ruby.wasm"
33
33
);
34
34
const module = await WebAssembly .compile (binary);
@@ -64,7 +64,7 @@ See [the example project](https://github.com/ruby/ruby.wasm/tree/main/packages/n
64
64
const response = await fetch (
65
65
// Tips: Replace the binary with debug info if you want symbolicated stack trace.
66
66
// (only nightly release for now)
67
- // "https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@latest /dist/ruby.debug.wasm"
67
+ // "https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@next /dist/ruby.debug+stdlib .wasm"
68
68
" https://cdn.jsdelivr.net/npm/ruby-head-wasm-wasi@latest/dist/ruby.wasm"
69
69
);
70
70
const buffer = await response .arrayBuffer ();
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ wit-bindgen js \
29
29
)
30
30
31
31
wasm-opt --strip-debug " $ruby_root /usr/local/bin/ruby" -o " $dist_dir /ruby.wasm"
32
- cp " $ruby_root /usr/local/bin/ruby" " $dist_dir /ruby.debug.wasm"
33
32
34
33
# Build +stdlib versions (removing files that are not used in normal use cases)
35
34
workdir=" $( mktemp -d) "
@@ -38,7 +37,7 @@ rm -rf $workdir/ruby-root/usr/local/include
38
37
rm -f $workdir /ruby-root/usr/local/lib/libruby-static.a
39
38
rm -f $workdir /ruby-root/usr/local/bin/ruby
40
39
wasi-vfs pack " $dist_dir /ruby.wasm" --mapdir /usr::$workdir /ruby-root/usr -o " $dist_dir /ruby+stdlib.wasm"
41
- wasi-vfs pack " $dist_dir / ruby.debug.wasm " --mapdir /usr::$workdir /ruby-root/usr -o " $dist_dir /ruby.debug+stdlib.wasm"
40
+ wasi-vfs pack " $ruby_root /usr/local/bin/ ruby" --mapdir /usr::$workdir /ruby-root/usr -o " $dist_dir /ruby.debug+stdlib.wasm"
42
41
43
42
44
43
mkdir " $dist_dir /bindgen"
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ describe("Packaging validation", () => {
31
31
32
32
test . each ( [
33
33
{ file : "ruby+stdlib.wasm" , stdlib : true } ,
34
- { file : "ruby.debug.wasm" , stdlib : false } ,
35
34
{ file : "ruby.debug+stdlib.wasm" , stdlib : true } ,
36
35
] ) ( "Load all variants" , async ( { file, stdlib } ) => {
37
36
const binary = await fs . readFile ( path . join ( __dirname , `./../dist/${ file } ` ) ) ;
You can’t perform that action at this time.
0 commit comments