Skip to content

Commit 51fe35c

Browse files
Use wasm binary with debug info for testing
1 parent c7c43a8 commit 51fe35c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/npm-packages/ruby-wasm-wasi/test/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const rubyModule = (async () => {
88
if (process.env.RUBY_ROOT) {
99
binaryPath = path.join(process.env.RUBY_ROOT, "./usr/local/bin/ruby");
1010
} else {
11-
binaryPath = path.join(__dirname, "./../dist/ruby+stdlib.wasm");
11+
binaryPath = path.join(__dirname, "./../dist/ruby.debug+stdlib.wasm");
1212
}
1313
const binary = await fs.readFile(binaryPath);
1414
return await WebAssembly.compile(binary.buffer);

packages/npm-packages/ruby-wasm-wasi/tools/run-test-unit.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const instantiateNodeWasi = async (rootTestFile) => {
1717
binaryPath = path.join(process.env.RUBY_ROOT, "./usr/local/bin/ruby");
1818
preopens["/usr"] = path.join(process.env.RUBY_ROOT, "./usr");
1919
} else {
20-
binaryPath = path.join(dirname, "../dist/ruby+stdlib.wasm");
20+
binaryPath = path.join(dirname, "../dist/ruby.debug+stdlib.wasm");
2121
}
2222
const binary = await fs.readFile(binaryPath);
2323
const rubyModule = await WebAssembly.compile(binary);

0 commit comments

Comments
 (0)