File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
packages/npm-packages/ruby-wasm-wasi/tools Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,11 @@ def self.__eval_async_rb(rb_code, future)
67
67
Fiber
68
68
. new do
69
69
future . resolve JS ::Object . wrap (
70
- Kernel . eval ( rb_code . to_s , nil , "eval_async" )
70
+ Kernel . eval (
71
+ rb_code . to_s ,
72
+ TOPLEVEL_BINDING ,
73
+ "eval_async"
74
+ )
71
75
)
72
76
rescue => e
73
77
future . reject JS ::Object . wrap ( e )
Original file line number Diff line number Diff line change @@ -53,8 +53,7 @@ const main = async () => {
53
53
54
54
Error.stackTraceLimit = Infinity;
55
55
56
- // FIXME: require ' test/unit' fails with evalAsync due to Kernel#eval (? )
57
- vm.eval(`
56
+ await vm.evalAsync(`
58
57
# HACK: Until we've fixed the issue in the test-unit or power_assert
59
58
# See https://github.com/test-unit/test-unit/pull/221
60
59
module Kernel
@@ -69,8 +68,6 @@ const main = async () => {
69
68
end
70
69
71
70
require ' test/unit'
72
- ` );
73
- await vm.evalAsync(`
74
71
require_relative ' ${rootTestFile}'
75
72
Test::Unit::AutoRunner.run
76
73
` );
You can’t perform that action at this time.
0 commit comments