Skip to content

Commit e8d167f

Browse files
Error tolerance for loading /bundle/setup just for convenience
1 parent 096ee8e commit e8d167f

File tree

1 file changed

+5
-1
lines changed
  • packages/npm-packages/ruby-wasm-wasi/src

1 file changed

+5
-1
lines changed

packages/npm-packages/ruby-wasm-wasi/src/vm.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ export class RubyVM {
125125
this.guest.rubyInit();
126126
this.guest.rubySysinit(c_args);
127127
this.guest.rubyOptions(c_args);
128-
this.eval(`require "/bundle/setup"`);
128+
try {
129+
this.eval(`require "/bundle/setup"`);
130+
} catch (e) {
131+
console.warn("Failed to load /bundle/setup", e);
132+
}
129133
}
130134

131135
/**

0 commit comments

Comments
 (0)