@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.
- package/dist/browser.script.umd.js +6 -1
- package/dist/browser.umd.js +6 -1
- package/dist/cjs/vm.js +6 -1
- package/dist/esm/vm.js +6 -1
- package/dist/index.umd.js +6 -1
- package/package.json +1 -1
|
@@ -922,7 +922,12 @@
|
|
|
922
922
|
this.guest.rubyInit();
|
|
923
923
|
this.guest.rubySysinit(c_args);
|
|
924
924
|
this.guest.rubyOptions(c_args);
|
|
925
|
-
|
|
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
|
package/dist/browser.umd.js
CHANGED
|
@@ -880,7 +880,12 @@
|
|
|
880
880
|
this.guest.rubyInit();
|
|
881
881
|
this.guest.rubySysinit(c_args);
|
|
882
882
|
this.guest.rubyOptions(c_args);
|
|
883
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|