@ruby/wasm-wasi 2.6.0 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -922,7 +922,12 @@
922
922
  this.guest.rubyInit();
923
923
  this.guest.rubySysinit(c_args);
924
924
  this.guest.rubyOptions(c_args);
925
- this.eval(`require "/bundle/setup"`);
925
+ try {
926
+ this.eval(`require "/bundle/setup"`);
927
+ }
928
+ catch (e) {
929
+ console.warn("Failed to load /bundle/setup", e);
930
+ }
926
931
  }
927
932
  /**
928
933
  * Set a given instance to interact JavaScript and Ruby's
@@ -880,7 +880,12 @@
880
880
  this.guest.rubyInit();
881
881
  this.guest.rubySysinit(c_args);
882
882
  this.guest.rubyOptions(c_args);
883
- this.eval(`require "/bundle/setup"`);
883
+ try {
884
+ this.eval(`require "/bundle/setup"`);
885
+ }
886
+ catch (e) {
887
+ console.warn("Failed to load /bundle/setup", e);
888
+ }
884
889
  }
885
890
  /**
886
891
  * Set a given instance to interact JavaScript and Ruby's
package/dist/cjs/vm.js CHANGED
@@ -107,7 +107,12 @@ class RubyVM {
107
107
  this.guest.rubyInit();
108
108
  this.guest.rubySysinit(c_args);
109
109
  this.guest.rubyOptions(c_args);
110
- this.eval(`require "/bundle/setup"`);
110
+ try {
111
+ this.eval(`require "/bundle/setup"`);
112
+ }
113
+ catch (e) {
114
+ console.warn("Failed to load /bundle/setup", e);
115
+ }
111
116
  }
112
117
  /**
113
118
  * Set a given instance to interact JavaScript and Ruby's
package/dist/esm/vm.js CHANGED
@@ -103,7 +103,12 @@ export class RubyVM {
103
103
  this.guest.rubyInit();
104
104
  this.guest.rubySysinit(c_args);
105
105
  this.guest.rubyOptions(c_args);
106
- this.eval(`require "/bundle/setup"`);
106
+ try {
107
+ this.eval(`require "/bundle/setup"`);
108
+ }
109
+ catch (e) {
110
+ console.warn("Failed to load /bundle/setup", e);
111
+ }
107
112
  }
108
113
  /**
109
114
  * Set a given instance to interact JavaScript and Ruby's
package/dist/index.umd.js CHANGED
@@ -870,7 +870,12 @@
870
870
  this.guest.rubyInit();
871
871
  this.guest.rubySysinit(c_args);
872
872
  this.guest.rubyOptions(c_args);
873
- this.eval(`require "/bundle/setup"`);
873
+ try {
874
+ this.eval(`require "/bundle/setup"`);
875
+ }
876
+ catch (e) {
877
+ console.warn("Failed to load /bundle/setup", e);
878
+ }
874
879
  }
875
880
  /**
876
881
  * Set a given instance to interact JavaScript and Ruby's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruby/wasm-wasi",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "WebAssembly port of CRuby with WASI",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",