@ai-ecoverse/slicc-kernel 1.70.0 → 1.71.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.
@@ -6025,6 +6025,7 @@ var init_wasi_fds = __esm({
6025
6025
  }
6026
6026
  }
6027
6027
  resolve(dirfd, path) {
6028
+ if (path === "") throw new WasiError("ENOENT");
6028
6029
  const joined2 = path.startsWith("/") ? path : `${this.dir(dirfd).path}/${path}`;
6029
6030
  return joined2.split("/").includes("..") ? physical(this.fs, joined2) : normalize(joined2);
6030
6031
  }
@@ -6935,7 +6936,11 @@ var init_wasi_host = __esm({
6935
6936
  o.fs.rename(from, to);
6936
6937
  fds.renamed(from, to, replaced);
6937
6938
  },
6938
- path_symlink: (tp, tl, dirfd, p, l) => void o.fs.symlink(mem.string(tp, tl), at(dirfd, p, l)),
6939
+ path_symlink: (tp, tl, dirfd, p, l) => {
6940
+ const path = at(dirfd, p, l);
6941
+ if (tl === 0) throw new WasiError("ENOENT");
6942
+ o.fs.symlink(mem.string(tp, tl), path);
6943
+ },
6939
6944
  path_readlink: (dirfd, p, l, buf, len, used) => {
6940
6945
  const target = new TextEncoder().encode(o.fs.readlink(at(dirfd, p, l)));
6941
6946
  const n = Math.min(len, target.length);