Skip to content

Commit cbcbc32

Browse files
committed
fix: update ruby.wasm to latest stable version 2.7.1
Use @ruby/wasm-wasi@2.7.1 and Ruby 3.4 binary for better compatibility.
1 parent d04c4af commit cbcbc32

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/ruby-wasm.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ const WORKER_CODE = `
5050
// Web Worker for T-Ruby WASM compilation
5151
// This runs in a separate thread, isolated from browser extensions
5252
53-
const RUBY_WASM_CDN = 'https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.7.0/dist/browser/+esm';
54-
const RUBY_WASM_BINARY = 'https://cdn.jsdelivr.net/npm/@ruby/3.3-wasm-wasi@2.7.0/dist/ruby+stdlib.wasm';
53+
// Use @ruby/wasm-wasi package directly for DefaultRubyVM
54+
const RUBY_WASM_CDN = 'https://cdn.jsdelivr.net/npm/@ruby/wasm-wasi@2.7.1/dist/browser/+esm';
55+
// Use Ruby 3.4 WASM binary (more stable)
56+
const RUBY_WASM_BINARY = 'https://cdn.jsdelivr.net/npm/@ruby/3.4-wasm-wasi@2.7.1/dist/ruby+stdlib.wasm';
5557
5658
const BOOTSTRAP_CODE = \`
5759
require "json"

0 commit comments

Comments
 (0)