@ai-ecoverse/slicc-kernel 1.191.0 → 1.191.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.
@@ -2941,7 +2941,8 @@ function idsOf(uid, gid) {
2941
2941
  };
2942
2942
  }
2943
2943
  function timesOf(atimeMs, mtimeMs) {
2944
- if (!capturedNumber.isFinite(atimeMs) || !capturedNumber.isFinite(mtimeMs)) {
2944
+ const ok = (v) => capturedNumber.isFinite(v) && capturedMath.abs(v) <= MAX_DATE_MS;
2945
+ if (!ok(atimeMs) || !ok(mtimeMs)) {
2945
2946
  throw new JsCallError("EINVAL", "utimes");
2946
2947
  }
2947
2948
  return { atimeMs, mtimeMs };
@@ -2974,7 +2975,7 @@ function caughtOf(handlers) {
2974
2975
  for (const sig of handlers.keys()) caught |= sigbit(sig);
2975
2976
  return caught;
2976
2977
  }
2977
- var MAX_ID, JsCallError, DETAILED, JsKernel;
2978
+ var MAX_ID, MAX_DATE_MS, JsCallError, DETAILED, JsKernel;
2978
2979
  var init_js_kernel = __esm({
2979
2980
  "src/process/js/js-kernel.ts"() {
2980
2981
  "use strict";
@@ -2983,6 +2984,7 @@ var init_js_kernel = __esm({
2983
2984
  init_sync_sab_wire();
2984
2985
  init_async_sab();
2985
2986
  MAX_ID = 4294967295;
2987
+ MAX_DATE_MS = 864e13;
2986
2988
  JsCallError = class extends capturedError {
2987
2989
  code;
2988
2990
  detail;
@@ -8127,7 +8129,7 @@ var init_version = __esm({
8127
8129
  "src/version.ts"() {
8128
8130
  "use strict";
8129
8131
  init_captured_globals();
8130
- KERNEL_VERSION = true ? "1.191.0" : "0.0.0-dev";
8132
+ KERNEL_VERSION = true ? "1.191.1" : "0.0.0-dev";
8131
8133
  OS_RELEASE = "6.0.0-slicc";
8132
8134
  }
8133
8135
  });