@ai-ecoverse/slicc-kernel 1.191.0 → 1.191.2

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/node.js CHANGED
@@ -7232,7 +7232,7 @@ function satisfies(version, range2) {
7232
7232
  }
7233
7233
 
7234
7234
  // src/version.ts
7235
- var KERNEL_VERSION = true ? "1.191.0" : "0.0.0-dev";
7235
+ var KERNEL_VERSION = true ? "1.191.2" : "0.0.0-dev";
7236
7236
  var OS_RELEASE = "6.0.0-slicc";
7237
7237
  function procVersion() {
7238
7238
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC
@@ -3188,7 +3188,7 @@ var init_version = __esm({
3188
3188
  "src/version.ts"() {
3189
3189
  "use strict";
3190
3190
  init_captured_globals();
3191
- KERNEL_VERSION = true ? "1.191.0" : "0.0.0-dev";
3191
+ KERNEL_VERSION = true ? "1.191.2" : "0.0.0-dev";
3192
3192
  OS_RELEASE = "6.0.0-slicc";
3193
3193
  }
3194
3194
  });
@@ -9024,7 +9024,8 @@ function idsOf(uid, gid) {
9024
9024
  };
9025
9025
  }
9026
9026
  function timesOf(atimeMs, mtimeMs) {
9027
- if (!capturedNumber.isFinite(atimeMs) || !capturedNumber.isFinite(mtimeMs)) {
9027
+ const ok = (v) => capturedNumber.isFinite(v) && capturedMath.abs(v) <= MAX_DATE_MS;
9028
+ if (!ok(atimeMs) || !ok(mtimeMs)) {
9028
9029
  throw new JsCallError("EINVAL", "utimes");
9029
9030
  }
9030
9031
  return { atimeMs, mtimeMs };
@@ -9057,7 +9058,7 @@ function caughtOf(handlers) {
9057
9058
  for (const sig of handlers.keys()) caught |= sigbit(sig);
9058
9059
  return caught;
9059
9060
  }
9060
- var MAX_ID, JsCallError, DETAILED, JsKernel;
9061
+ var MAX_ID, MAX_DATE_MS, JsCallError, DETAILED, JsKernel;
9061
9062
  var init_js_kernel = __esm({
9062
9063
  "src/process/js/js-kernel.ts"() {
9063
9064
  "use strict";
@@ -9066,6 +9067,7 @@ var init_js_kernel = __esm({
9066
9067
  init_sync_sab_wire();
9067
9068
  init_async_sab();
9068
9069
  MAX_ID = 4294967295;
9070
+ MAX_DATE_MS = 864e13;
9069
9071
  JsCallError = class extends capturedError {
9070
9072
  code;
9071
9073
  detail;