ruby-head-wasm-wasi-0.5.0
·
1005 commits
to main
since this release
channel | source |
---|---|
head | ruby/ruby@0a9d51ee9d2b3d0111832e5ea1c8195a16e2f99b |
What's Changed
- Add JS::Error class to catch JS exception by @kateinoigakukun in #110
begin
JS.eval("throw new Error('foo')")
rescue JS::Error => e
puts e
end
-
Improve exception handling for
RuntimeError: unreachable
and other mysterious errors by @kateinoigakukun in #111 -
Promise Scheduler to await Promise in Ruby by @kateinoigakukun in #112
const text = await vm.evalAsync(`
require "js"
response = JS.global.fetch("https://httpbin.org/user-agent").await
response.text.await
`)
console.log(text.toString())
New Contributors
Full Changelog: ruby-head-wasm-wasi-0.4.0...ruby-head-wasm-wasi-0.5.0