mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-05 08:13:06 +08:00
Fence fs.readSyncDyn with fs.readSync
The readSync form whose arguments are checked at run time lowers to fs.readSyncDyn, which the determinism attestation demotes on. List it as an alias of fs.readSync so the readSync fence witnesses it.
This commit is contained in:
@@ -2127,6 +2127,8 @@ export const BUILTIN_MODULE_FN_ALIASES: Record<
|
||||
],
|
||||
// The utf8 string overload; the table row is the Buffer-window form.
|
||||
writeSync: ["fs.writeStrSync"],
|
||||
// The form whose arguments Node checks at run time.
|
||||
readSync: ["fs.readSyncDyn"],
|
||||
// The { recursive, mode } option lowerings.
|
||||
mkdirSync: ["fs.mkdirModeSync", "fs.mkdirRecursiveSync", "fs.mkdirRecursiveModeSync"],
|
||||
// The { recursive, force } and maxRetries/retryDelay option lowerings.
|
||||
|
||||
Reference in New Issue
Block a user