@ai-ecoverse/slicc-kernel 1.39.0 → 1.39.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.
|
@@ -8165,6 +8165,7 @@ var init_js_kernel = __esm({
|
|
|
8165
8165
|
pid = 0;
|
|
8166
8166
|
reported = { caught: 0, ignored: 0 };
|
|
8167
8167
|
watching = false;
|
|
8168
|
+
faulted = false;
|
|
8168
8169
|
constructor(o) {
|
|
8169
8170
|
this.header = new Int32Array(o.sab, 0, SAB_HEADER_I32);
|
|
8170
8171
|
this.transport = o.transport;
|
|
@@ -8214,12 +8215,16 @@ var init_js_kernel = __esm({
|
|
|
8214
8215
|
continue;
|
|
8215
8216
|
}
|
|
8216
8217
|
try {
|
|
8217
|
-
Promise.resolve(handler(sig)).catch(this.
|
|
8218
|
+
Promise.resolve(handler(sig)).catch((err) => this.fault(err));
|
|
8218
8219
|
} catch (err) {
|
|
8219
|
-
this.
|
|
8220
|
+
this.fault(err);
|
|
8220
8221
|
}
|
|
8221
8222
|
}
|
|
8222
8223
|
}
|
|
8224
|
+
fault(err) {
|
|
8225
|
+
this.faulted = true;
|
|
8226
|
+
this.onError(err);
|
|
8227
|
+
}
|
|
8223
8228
|
async watch() {
|
|
8224
8229
|
if (this.watching) return;
|
|
8225
8230
|
this.watching = true;
|
|
@@ -8626,6 +8631,7 @@ function createContext(o) {
|
|
|
8626
8631
|
};
|
|
8627
8632
|
const unwind = () => {
|
|
8628
8633
|
if (exiting !== void 0) throw new JsExit(exiting);
|
|
8634
|
+
if (kernel.faulted) throw new JsExit(1);
|
|
8629
8635
|
};
|
|
8630
8636
|
const info = async (fd) => {
|
|
8631
8637
|
const known = infos.get(fd);
|