Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion config/patches/vitest@5.0.5.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
diff --git a/dist/chunks/cli-api.De07GUeT.js b/dist/chunks/cli-api.De07GUeT.js
index ff6e63043ff8fa0b821d4b0b382d1fd998d85dbb..a95172c2a451f615f9472a526d7ed8a670256b47 100644
index ff6e63043ff8fa0b821d4b0b382d1fd998d85dbb..157ee220f1011328522bafa72f1e87fa92e60be4 100644
--- a/dist/chunks/cli-api.De07GUeT.js
+++ b/dist/chunks/cli-api.De07GUeT.js
@@ -10250,6 +10250,7 @@ function groupFilters(filters) {
Expand Down Expand Up @@ -72,3 +72,13 @@ index ff6e63043ff8fa0b821d4b0b382d1fd998d85dbb..a95172c2a451f615f9472a526d7ed8a6
}
dependsOnConfig(configDependencies) {
return !!configDependencies?.some((file) => this.related.includes(file));
@@ -11817,7 +11845,8 @@ class TestRun {
else error.stacks = parseErrorStacktrace(error, {
frameFilter: project.config.onStackTrace,
getSourceMap(file) {
- if (!project.vite.moduleGraph.getModuleById(file)?.transformResult && existsSync(file)) {
+ // Orca: stack frames can name a directory; existsSync accepts it and readFileSync then throws EISDIR, failing a green run.
+ if (!project.vite.moduleGraph.getModuleById(file)?.transformResult && statSync(file, { throwIfNoEntry: false })?.isFile()) {
Comment on lines +80 to +81

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor · Stability & Availability · Quick win

Supported by static analysis

Script executed:

sed -n '11770,11870p' node_modules/vitest/dist/chunks/cli-api.De07GUeT.js
rg -n 'parseErrorStacktrace|getSourceMap|syncUpdateStacks|updated\(' node_modules/vitest node_modules/.pnpm 2>/dev/null | head -120
node -e 'const fs=require("fs"); for (const p of ["/tmp", "/tmp/nonexistent/child"]) { try { console.log(p, fs.existsSync(p), fs.statSync(p,{throwIfNoEntry:false})); } catch (e) { console.log(p, fs.existsSync(p), e.code); } }'

Repository: stablyai/orca

Length of output: 5586


Script executed:

set -o pipefail
printf '%s\n' '--- imports and parser references ---'
rg -n -F --glob '*.js' -e 'parseErrorStacktrace' -e 'syncUpdateStacks' -e 'updated(update' node_modules/vitest node_modules/.pnpm 2>/dev/null | head -160 || test "$?" -eq 1
printf '%s\n' '--- parser files ---'
find node_modules node_modules/.pnpm -path '*@vitest*utils*' -o -path '*vitest*utils*' 2>/dev/null | head -80
printf '%s\n' '--- updated registration/call references ---'
rg -n -F --glob '*.{js,mjs,cjs,ts}' -e '.updated(' -e 'updated:' -e 'updated(update' node_modules/vitest node_modules/.pnpm 2>/dev/null | head -200 || test "$?" -eq 1
printf '%s\n' '--- exact parser implementation candidates ---'
for f in $(find node_modules node_modules/.pnpm -type f \( -name '*.js' -o -name '*.mjs' \) -path '*vitest*' 2>/dev/null | head -400); do
  if grep -q 'function parseErrorStacktrace\|const parseErrorStacktrace\|parseErrorStacktrace =' "$f" 2>/dev/null; then
    echo "FILE:$f"
    grep -n -A80 -B20 'function parseErrorStacktrace\|const parseErrorStacktrace\|parseErrorStacktrace =' "$f"
  fi
done

Repository: stablyai/orca

Length of output: 16722


Script executed:

node <<'JS'
const fs = require('fs');
const paths = [
  '/proc/1/cmdline/not-a-child',
  '/proc/1/status/not-a-child',
  '/proc/1/fd/not-a-child'
];
for (const file of paths) {
  let stat;
  try {
    stat = fs.statSync(file, { throwIfNoEntry: false });
    console.log(JSON.stringify({ file, exists: fs.existsSync(file), stat: stat === undefined ? 'undefined' : 'present' }));
  } catch (error) {
    console.log(JSON.stringify({ file, exists: fs.existsSync(file), statError: error.code }));
  }
}
JS

Repository: stablyai/orca

Length of output: 364


Script executed:

set -o pipefail
printf '%s\n' '--- parseStacktrace and getSourceMap callback flow ---'
sed -n '1580,1748p' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/dist/chunks/source-map.DdKI5IHB.js
printf '%s\n' '--- updated dispatch references ---'
rg -n -F --glob '*.js' -e 'syncUpdateStacks' -e 'updated' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/dist/chunks | head -240 || test "$?" -eq 1
printf '%s\n' '--- parseErrorStacktrace imports in cli chunk ---'
grep -n -E 'source-map|parseErrorStacktrace|statSync|readFileSync' node_modules/vitest/dist/chunks/cli-api.De07GUeT.js | head -80

Repository: stablyai/orca

Length of output: 18370


Script executed:

node <<'JS'
const fs = require('fs');
const file = '/etc/passwd/not-a-child';
try {
  console.log(JSON.stringify({
    file,
    exists: fs.existsSync(file),
    stat: fs.statSync(file, { throwIfNoEntry: false })
  }));
} catch (error) {
  console.log(JSON.stringify({ file, exists: fs.existsSync(file), statError: error.code }));
}
JS

Repository: stablyai/orca

Length of output: 201


Script executed:

set -o pipefail
printf '%s\n' '--- updated caller boundary ---'
sed -n '12670,12715p' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/dist/chunks/cli-api.De07GUeT.js
printf '%s\n' '--- update call sites ---'
sed -n '5055,5095p' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/dist/chunks/index.1TqnEahn.js
sed -n '5678,5710p' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/dist/chunks/index.1TqnEahn.js
sed -n '5740,5770p' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/dist/chunks/index.1TqnEahn.js
printf '%s\n' '--- package engine declarations ---'
grep -n -A12 -B3 '"engines"' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/package.json
node -p 'process.version'

Repository: stablyai/orca

Length of output: 7084


Web query:

Node.js fs.statSync throwIfNoEntry false ENOTDIR existsSync behavior official documentation supported Node 20

Result:

<source_evidence>
<source kind="find_in_page">
<title>File system | Node.js v20.19.0 Documentation</title>
<location>https://nodejs.org/download/release/v20.19.0/docs/api/fs.html</location>
<excerpt>citeturn2view2 [wordlim: 200] Crawled: today; Content type: text/html; Source: find({&quot;ref_id&quot;:&quot;turn1view0&quot;,&quot;pattern&quot;:&quot;If the file does not exist&quot;}); Total lines: 5072
L1491:       console.log(`${file} ${err ? &#39;does not exist&#39; : &#39;exists&#39;}`);
L1492:     });
L1493: 
L1494:     // Check if the file is readable.
L1495:     access(file, constants.R_OK, (err) =&gt; {
L1496:       console.log(`${file} ${err ? &#39;is not readable&#39; : &#39;is readable&#39;}`);
L1497:     });
L1498: 
L1499:     // Check if the file is writable.
L1500:     access(file, constants.W_OK, (err) =&gt; {
L1501:       console.log(`${file} ${err ? &#39;is not writable&#39; : &#39;is writable&#39;}`);
L1502:     });
L1503: 
L1504:     // Check if the file is readable and writable.
L1508: Do not use `fs.access()` to check for the accessibility of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()`. Doing so introduces a race condition, since other processes may change the file&#39;s state between the two calls. Instead, user code should open/read/write the file directly and handle the error raised if the file is not accessible.
L1553: read (NOT RECOMMENDED)
L1554: 
L1555:     `import { access, open, close } from &#39;node:fs&#39;;
L1556:     access(&#39;myfile&#39;, (err) =&gt; {
L1557:       if (err) {
L1558:         if (err.code === &#39;ENOENT&#39;) {
L1559:           console.error(&#39;myfile does not exist&#39;);
L1560:           return;
L1561:         }
L1562: 
L1563:         throw err;
L1564:       }
L1565: 
L1566:       open(&#39;myfile&#39;, &#39;r&#39;, (err, fd) =&gt; {
L1567:         if (err) throw err;
L1568: 
L1569:         try {
L1570:           readMyData(fd);
L1571:         } finally {
L1572:           close(fd, (err) =&gt; {
L1573:             if (err) throw err;
L1574:           });
L1575:         }
L1576:       });
L1578: read (RECOMMENDED)
L1579: 
L1580:     `import { open, close } from &#39;node:fs&#39;;
L1581: 
L1582:     open(&#39;myfile&#39;, &#39;r&#39;, (err, fd) =&gt; {
L1583:       if (err) {
L1584:         if (err.code === &#39;ENOENT&#39;) {
L1585:           console.error(&#39;myfile does not exist&#39;);
L1586:           return;
L1587:         }
L1588: 
L1589:         throw err;
L1590:       }
L1591: 
L1592:       try {
L1593:         readMyData(fd);
L1594:       } finally {
L1595:         close(fd, (err) =&gt; {
L1596:           if (err) throw err;
L1597:         });
L1598:       }
L1599:     });` [Button: copy]
L1600: The &quot;not recommended&quot; examples above check for accessibility and then use the file; the &quot;recommended&quot; examples are better because they use the file directly and handle the error, if any.
L1601: 
L1602: In general, check for the accessibility of a file only if the file will not be used directly, for example when its accessibility is a signal from another process.
L1603: On Windows, access-control policies (ACLs) on a directory may limit access to a file or directory. The `fs.access()` function, however, does not check the ACL and therefore may report that a path is accessible even if the ACL restricts the user from reading or writing to it.
L1939: Using `fs.exists()` to check for the existence of a file before calling `fs.open()`, `fs.readFile()`, or `fs.writeFile()` is not recommended. Doing so introduces a race condition, since other processes may change the file&#39;s state between the two calls. Instead, user code should open/read/write the file directly and handle the error raised if the file does not exist.
L3824: #### `fs.statSync(path[, options])`【163†#】
L3825: 
L3826: History
L3827: Version  | Changes
L3828: --- | ---
L3829: v15.3.0, v14.17.0  | Accepts a `throwIfNoEntry` option to specify whether an exception should be thrown if the entry does not exist.
L3830: v10.5.0  | Accepts an additional `options` object to specify whether the numeric values returned should be bigint.
L3831: v7.6.0  | The `…[truncated]</excerpt>
</source>
<source kind="open_page">
<title>File system | Node.js v20.19.0 Documentation</title>
<location>https://nodejs.org/download/release/v20.19.0/docs/api/fs.html</location>
<excerpt>citeturn1view0 [wordlim: 200] Crawled: today; Content type: text/html; Source: open({&quot;ref_id&quot;:&quot;https://nodejs.org/download/release/v20.19.0/docs/api/fs.html&quot;,&quot;lineno&quot;:null}); Total lines: 5072
L0: 【0†Skip to content】
L1: # Node.js v20.19.0 documentation
L2: 
L3:   * Node.js v20.19.0
L4:   * 【1†Table of contents】
L5:     * 【2†File system】
L6:       * 【3†Promise example】
L7:       * 【4†Callback example】
L8:       * 【5†Synchronous example】
L9:       * 【6†Promises API】
L10:         * 【7†Class: `FileHandle`】
L11:           * 【8†Event: `&#39;close&#39;`】
L12:           * 【9†`filehandle.appendFile(data[, options])`】
L13:           * 【10†`filehandle.chmod(mode)`】
L14:           * 【11†`filehandle.chown(uid, gid)`】
L15:           * 【12†`filehandle.close()`】
L16:           * 【13†`filehandle.createReadStream([options])`】
L17:           * 【14†`filehandle.createWriteStream([options])`】
L18:           * 【15†`filehandle.datasync()`】
L19:           * 【16†`filehandle.fd`】
L20:           * 【17†`filehandle.read(buffer, offset, length, position)`】
L21:           * 【18†`filehandle.read([options])`】
L22:           * 【19†`filehandle.read(buffer[, options])`】
L23:           * 【20†`filehandle.readableWebStream([options])`】
L24:           * 【21†`filehandle.readFile(options)`】
L25:           * 【22†`filehandle.readLines([options])`】
L26:           * 【23†`filehandle.readv(buffers[, position])`】
L27:           * 【24†`filehandle.stat([options])`】
L28:           * 【25†`filehandle.sync()`】
L29:           * 【26†`filehandle.truncate(len)`】
L30:           * 【27†`filehandle.utimes(atime, mtime)`】
L31:           * 【28†`filehandle.write(buffer, offset[, length[, position]])`】
L32:           * 【29†`filehandle.write(buffer[, options])`】
L33:           * 【30†`filehandle.write(string[, position[, encoding]])`】
L34:           * 【31†`filehandle.writeFile(data, options)`】
L35:           * 【32†`filehandle.writev(buffers[, position])`】
L36:           * 【33†`filehandle[Symbol.asyncDispose]()`】
L37:         * 【34†`fsPromises.access(path[, mode])`】
L38:         * 【35†`fsPromises.appendFile(path, data[, options])`】
L39:         * 【36†`fsPromises.chmod(path, mode)`】
L40:         * 【37†`fsPromises.chown(path, uid, gid)`】
L41:         * 【38†`fsPromises.copyFile(src, dest[, mode])`】
L42:         * 【39†`fsPromises.cp(src, dest[, options])`】
L43:         * 【40†`fsPromises.lchmod(path, mode)`】
L44:         * 【41†`fsPromises.lchown(path, uid, gid)`】
L45:         * 【42†`fsPromises.lutimes(path, atime, mtime)`】
L46:         * 【43†`fsPromises.link(existingPath, newPath)`】
L47:         * 【44†`fsPromises.lstat(path[, options])`】
L48:         * 【45†`fsPromises.mkdir(path[, options])`】
L49:         * 【46†`fsPromises.mkdtemp(prefix[, options])`】
L50:         * 【47†`fsPromises.open(path, flags[, mode])`】
L51:         * 【48†`fsPromises.opendir(path[, options])`】
L52:         * 【49†`fsPromises.readdir(path[, options])`】
L53:         * 【50†`fsPromises.readFile(path[, options])`】
L54:         * 【51†`fsPromises.readlink(path[, options])`】
L55:         * 【52†`fsPromises.realpath(path[, options])`】
L56:         * 【53†`fsPromises.rename(oldPath, newPath)`】
L57:         * 【54†`fsPromises.rmdir(path[, options])`】
L58:         * 【55†`fsPromises.rm(path[, options])`】
L59:         * 【56†`fsPromises.stat(path[, options])`】
L60:         * 【57†`fsPromises.statfs(path[, options])`】
L61:         * 【58†`fsPromises.symlink(target, path[, type])`】
L62:         * 【59†`fsPromises.truncate(path[, len])`】
L63:         * 【60†`fsPromises.unlink(path)`】
L64:         * 【61†`fsPromises.utimes(path, atime, mtime)`】
L65:         * 【62†`fsPromises.watch(filename[, options])`】
L66:         * 【63†`fsPromises.writeFile(file, data[, options])`】
L67:         * 【64†`fsPromises.constants`】
L68:       * 【65†Callback API】
L69:         * 【66†`fs.access(path[, mode], callback)`】
L70:         * 【67†`fs.appendFile(path, data[, options], callback)`】
L71:         * 【68†`fs.chmod(path, mode, callbac…[truncated]</excerpt>
</source>
<source kind="open_page">
<title>node/lib/fs.js at v20.19.0 · nodejs/node · GitHub</title>
<location>https://github.com/nodejs/node/blob/v20.19.0/lib/fs.js</location>
<excerpt>citeturn1view1 [wordlim: 200] Crawled: today; Content type: text/html; Source: open({&quot;ref_id&quot;:&quot;https://github.com/nodejs/node/blob/v20.19.0/lib/fs.js&quot;,&quot;lineno&quot;:null}); Total lines: 3873
L0: 【0†Skip to content】
L1: ## Navigation Menu
L2: 
L3: 【1†Sign in】
L4: 
L5: Appearance settings
L6: 
L7:   * Platform
L8: 
L9:     * AI CODE CREATION
L10:       * 【2†GitHub CopilotWrite better code with AI】
L11:       * 【3†GitHub Copilot appDirect agents from issue to merge】
L12:       * 【4†MCP RegistryIntegrate external tools】
L13: 
L14:     * DEVELOPER WORKFLOWS
L15:       * 【5†ActionsAutomate any workflow】
L16:       * 【6†CodespacesInstant dev environments】
L17:       * 【7†IssuesPlan and track work】
L18:       * 【8†Code ReviewManage code changes】
L19:       * 【9†Code QualityEnforce quality at merge】
L20:     * APPLICATION SECURITY
L21:       * 【10†GitHub Advanced SecurityFind and fix vulnerabilities】
L22:       * 【11†Code securitySecure your code as you build】
L23:       * 【12†Secret protectionStop leaks before they start】
L24: 
L25:     * EXPLORE
L26:       * 【13†Why GitHub】
L27:       * 【14†Documentation†docs.github.com】
L28:       * 【15†Blog†github.blog】
L29:       * 【16†Changelog†github.blog】
L30:       * 【17†Marketplace】
L31: 
L32: 【18†View all features】
L33: 
L34:   * Solutions
L35:     * BY COMPANY SIZE
L36:       * 【19†Enterprises】
L37:       * 【20†Small and medium teams】
L38:       * 【21†Startups】
L39:       * 【22†Nonprofits】
L40: 
L41:     * BY USE CASE
L42:       * 【23†App Modernization】
L43:       * 【24†DevSecOps】
L44:       * 【25†DevOps】
L45:       * 【26†CI/CD】
L46:       * 【27†View all use cases】
L47: 
L48:     * BY INDUSTRY
L49:       * 【28†Healthcare】
L50:       * 【29†Financial services】
L51:       * 【30†Manufacturing】
L52:       * 【31†Government】
L53:       * 【32†See all industries】
L54: 
L55: 【33†View all solutions】
L56: 
L57:   * Resources
L58:     * EXPLORE BY TOPIC
L59:       * 【34†AI】
L60:       * 【35†Software Development】
L61:       * 【36†DevOps】
L62:       * 【37†Security】
L63:       * 【38†View all topics】
L64: 
L65:     * EXPLORE BY TYPE
L66:       * 【39†Customer stories】
L67:       * 【40†Events &amp; webinars】
L68:       * 【41†Ebooks &amp; reports】
L69:       * 【42†Business insights】
L70:       * 【43†GitHub Skills†skills.github.com】
L71:     * SUPPORT &amp; SERVICES
L72:       * 【14†Documentation†docs.github.com】
L73:       * 【44†Customer support†support.github.com】
L74:       * 【45†Community forum】
L75:       * 【46†Trust center】
L76:       * 【47†Partners】
L77: 
L78: 【48†View all resources】
L79: 
L80:   * Open Source
L81: 
L82:     * COMMUNITY
L83:       * 【49†GitHub SponsorsFund open source developers】
L84:     * PROGRAMS
L85:       * 【50†Security Lab†securitylab.github.com】
L86:       * 【51†Maintainer Community†maintainers.github.com】
L87:       * 【52†GitHub Stars†stars.github.com】
L88:       * 【53†Archive Program†archiveprogram.github.com】
L89: 
L90:     * REPOSITORIES
L91:       * 【54†Topics】
L92:       * 【55†Trending】
L93:       * 【56†Collections】
L94: 
L95:   * Enterprise
L96: 
L97:     * ENTERPRISE SOLUTIONS
L98:       * 【19†Enterprise platformAI-powered developer platform】
L99:     * AVAILABLE ADD-ONS
L100:       * 【10†GitHub Advanced SecurityEnterprise-grade security features】
L101:       * 【57†Copilot for BusinessEnterprise-grade AI features】
L102:       * 【58†Premium SupportEnterprise-grade 24/7 support】
L103: 
L104:   * 【59†Pricing】
L105: 
L106: Search`/`
L107: 
L108: 【1†Sign in】
L109: 
L110: 【60†Sign up】
L111: 
L112: Appearance settings
L113: You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
L114: 
L115:   1. 【61†nodejs】
L116:   2. 【62†node】
L117: ## Repository navigation
L118: 
L119:   *   * 【62†Code】
L120:   * 【63†Issues629 (629)】
L121:   * 【64†Pull requests662 (662)】
L…[truncated]</excerpt>
</source>
<source kind="search">
<title>node/doc/api/fs.md at main · nodejs/node · GitHub</title>
<location>https://github.com/nodejs/node/blob/main/doc/api/fs.md?plain=1</location>
<excerpt>citeturn0search0 [wordlim: 200] Crawled: last month; See the POSIX rename(2) documentation for more details. ### `fs.rmdirSync(path[, options])` &lt;!-- YAML added: v0.1.21 changes: - version: v25.0.0 pr-url: https://github.com/nodejs/node/pull/58616 description: Remove `recursive` option. - version: v16.0.0 pr-url: https://github.com/nodejs/node/pull/37216 description: &quot;Using `fs.rmdirSync(path, { recursive: true })` on a `path` that is a file is no longer permitted and results in an `ENOENT` error on Windows and an `ENOTDIR` error on POSIX.&quot; - version: v16.0.0 pr-url: https://github.com/nodejs/node/pull/37216 description: &quot;Using `fs.rmdirSync(path, { recursive: true })` on a `path` that does not exist is no longer permitted and results in a `ENOENT` error.&quot; - version: v16.0.0 pr-url: https://github.com/nodejs/node/pull/37302 description: The `recursive` option is deprecated, using it triggers a deprecation warning. - version: v14.14.0 pr-url: https://github.com/nodejs/node/pull/35579 description: The `recursive` option is deprecated, use `fs.rmSync` instead. - version: - v13.3.0 - v12.16.0 pr-url: https://github.com/nodejs/node/pull/30644 description: The `maxBusyTries` option is renamed to `maxRetries`, and its default is 0. ... Returns `undefined`. ### `fs.statSync(path[, options])` &lt;!-- YAML added: v0.1.21 changes: - version: - v15.3.0 - v14.17.0 pr-url: https://github.com/nodejs/node/pull/33716 description: Accepts a `throwIfNoEntry` option to specify whether an exception should be thrown if the entry does not exist. - version: v10.5.0 pr-url: https://github.com/nodejs/node/pull/20220 description: Accepts an additional `options` object to specify whether the numeric values returned should be bigint. - version: v7.6.0 pr-url: https://github.com/nodejs/node/pull/10739 description: The `path` parameter can be a WHATWG `URL` object using `file:` protocol. --&gt; * `path` {string|Buffer|URL} * `options` {Object} * `bigint` {boolean} Whether the numeric values in the returned {fs.Stats} object should be `bigint`.
This option represents the number of retries. This option is ignored if the `recursive` option is not `true`. **Default:** `0`. * `recursive` {boolean} If `true`, perform a recursive directory removal. In recursive mode operations are retried on failure. **Default:** `false`. * `retryDelay` {integer} The amount of time in milliseconds to wait between retries. This option is ignored if the `recursive` option is not `true`. **Default:** `100`. * Returns: {Promise} Fulfills with `undefined` upon success. Removes files and directories (modeled on the standard POSIX `rm` utility). ### `fsPromises.stat(path[, options])` &lt;!-- YAML added: v10.0.0 changes: - version: v26.8.0 pr-url: https://github.com/nodejs/node/pull/63143 description: Accepts an additional `signal` option to allow aborting the operation. - version: v25.7.0 pr-url: https://github.com/nodejs/node/pull/61178 description: Accepts a `throwIfNoEntry` option to specify whether an exception should be thrown if the entry does not exist. - version: v10.5.0 pr-url: https://github.com/nodejs/node/pull/20220 description: Accepts an additional `options` object to specify whether the numeric values returned should be bigint. --&gt; * `path` {string|Buffer|URL} * `options` {Object} * `bigint` {boolean} Whether the numeric values in the returned {fs.Stats} object should be `bigint`. **Default:** `false`. * `throwIfNoEntry` {boolean} Whether an exception will be thrown if no file system entry exists, rather than returning `undefined`. **Default:** `true`. * `signal` {AbortSignal} An AbortSignal to cancel the operation. **Default:** `undefined`. * Returns: {Promise} Fulfills with the {fs.Stats} object for the given `path`. ### `fsPromises.statfs(path[, options])` &lt;!-- YAML added: - v19.6.0 - v18.15.0 --&gt; * `path` {string|Buffer|URL} * `options` {Object} * `bigint` {boolean} Whether the numeric values in the returned {fs.StatFs} ob…[truncated]</excerpt>
</source>
<source kind="search">
<title>statSync with throwIfNoEntry: false still throws ENOTDIR · Issue #56993 · nodejs/node · GitHub</title>
<location>GitHub issue 56993 in nodejs/node (link omitted to avoid creating a cross-reference)</location>
<excerpt>citeturn0search1 [wordlim: 200] Published: 1.7 years ago; Crawled: last month; at least Node 20+ ... &gt; fs.statSync(&#39;./a/b&#39;, { throwIfNoEntry: false }) // throws ENOTDIR error ... a file exists in part of the path. ... to join this conversation on GitHub.

# statSync with throwIfNoEntry: false still throws ENOTDIR #56993

New issue

Copy link

New issue

Copy link

Closed

Closed

statSync with throwIfNoEntry: false still throws ENOTDIR#56993

Copy link

Labels

fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.

## Description

jdalton

opened on Feb 10, 2025

### Version

at least Node 20+

### Platform
    
    `osx
    `

### Subsystem

No response

### What steps will reproduce the bug?

in your terminal of choice

&gt; touch a

then enter into `node` repl

&gt; fs.statSync(&#39;./a/b&#39;, { throwIfNoEntry: false }) // throws ENOTDIR error

### How often does it reproduce? Is there a required condition?

a file exists in part of the path.

### What is the expected behavior? Why is that the expected behavior?

I would expect `undefined` to be returned instead of erroring.

### What do you see instead?

it throws a ENOTDIR error.

## Activity

to join this conversation on GitHub. Already have an account? Sign in to comment

## Metadata

## Metadata

### Assignees

No one assigned

### Labels

fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.

### Type

No type

### Projects

No projects

### Milestone

No milestone

### Relationships

None yet

### Development

No branches or pull requests</excerpt>
</source>
<omitted_sources count="10">Additional source records were omitted from this bounded result.</omitted_sources>
</source_evidence>

Citations:

- 1: https://nodejs.org/download/release/v20.19.0/docs/api/fs.html
- 2: https://nodejs.org/download/release/v20.19.0/docs/api/fs.html
- 3: https://nodejs.org/download/release/v20.19.0/docs/api/fs.html

Script executed:

set -o pipefail
printf '%s\n' '--- state.catchError implementation and error aggregation ---'
rg -n -F --glob '*.js' -e 'catchError(error' -e 'catchError(' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/dist/chunks | head -80 || test "$?" -eq 1
rg -n -F --glob '*.js' -e 'Unhandled Reporter Error' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/dist/chunks | head -80 || test "$?" -eq 1

Repository: stablyai/orca

Length of output: 6438


Web query:

Node.js issue 56993 ENOTDIR statSync throwIfNoEntry false fixed Node 22 24

Result:

<source_evidence>
<source kind="open_page">
<title>statSync with throwIfNoEntry: false still throws ENOTDIR · Issue #56993 · nodejs/node · GitHub</title>
<location>GitHub issue 56993 in nodejs/node (link omitted to avoid creating a cross-reference)</location>
<excerpt>citeturn1view0 [wordlim: 200] Crawled: today; Content type: text/html; Source: open({&quot;ref_id&quot;:&quot;https://github.com/nodejs/node/issues/56993&quot;,&quot;lineno&quot;:null}); Total lines: 403
L0: 【0†Skip to content】
L1: ## Navigation Menu
L2: 
L3: 【1†Sign in】
L4: 
L5: Appearance settings
L6: 
L7:   * Platform
L8: 
L9:     * AI CODE CREATION
L10:       * 【2†GitHub CopilotWrite better code with AI】
L11:       * 【3†GitHub Copilot appDirect agents from issue to merge】
L12:       * 【4†MCP RegistryIntegrate external tools】
L13: 
L14:     * DEVELOPER WORKFLOWS
L15:       * 【5†ActionsAutomate any workflow】
L16:       * 【6†CodespacesInstant dev environments】
L17:       * 【7†IssuesPlan and track work】
L18:       * 【8†Code ReviewManage code changes】
L19:       * 【9†Code QualityEnforce quality at merge】
L20:     * APPLICATION SECURITY
L21:       * 【10†GitHub Advanced SecurityFind and fix vulnerabilities】
L22:       * 【11†Code securitySecure your code as you build】
L23:       * 【12†Secret protectionStop leaks before they start】
L24: 
L25:     * EXPLORE
L26:       * 【13†Why GitHub】
L27:       * 【14†Documentation†docs.github.com】
L28:       * 【15†Blog†github.blog】
L29:       * 【16†Changelog†github.blog】
L30:       * 【17†Marketplace】
L31: 
L32: 【18†View all features】
L33: 
L34:   * Solutions
L35:     * BY COMPANY SIZE
L36:       * 【19†Enterprises】
L37:       * 【20†Small and medium teams】
L38:       * 【21†Startups】
L39:       * 【22†Nonprofits】
L40: 
L41:     * BY USE CASE
L42:       * 【23†App Modernization】
L43:       * 【24†DevSecOps】
L44:       * 【25†DevOps】
L45:       * 【26†CI/CD】
L46:       * 【27†View all use cases】
L47: 
L48:     * BY INDUSTRY
L49:       * 【28†Healthcare】
L50:       * 【29†Financial services】
L51:       * 【30†Manufacturing】
L52:       * 【31†Government】
L53:       * 【32†See all industries】
L54: 
L55: 【33†View all solutions】
L56: 
L57:   * Resources
L58:     * EXPLORE BY TOPIC
L59:       * 【34†AI】
L60:       * 【35†Software Development】
L61:       * 【36†DevOps】
L62:       * 【37†Security】
L63:       * 【38†View all topics】
L64: 
L65:     * EXPLORE BY TYPE
L66:       * 【39†Customer stories】
L67:       * 【40†Events &amp; webinars】
L68:       * 【41†Ebooks &amp; reports】
L69:       * 【42†Business insights】
L70:       * 【43†GitHub Skills†skills.github.com】
L71:     * SUPPORT &amp; SERVICES
L72:       * 【14†Documentation†docs.github.com】
L73:       * 【44†Customer support†support.github.com】
L74:       * 【45†Community forum】
L75:       * 【46†Trust center】
L76:       * 【47†Partners】
L77: 
L78: 【48†View all resources】
L79: 
L80:   * Open Source
L81: 
L82:     * COMMUNITY
L83:       * 【49†GitHub SponsorsFund open source developers】
L84:     * PROGRAMS
L85:       * 【50†Security Lab†securitylab.github.com】
L86:       * 【51†Maintainer Community†maintainers.github.com】
L87:       * 【52†GitHub Stars†stars.github.com】
L88:       * 【53†Archive Program†archiveprogram.github.com】
L89: 
L90:     * REPOSITORIES
L91:       * 【54†Topics】
L92:       * 【55†Trending】
L93:       * 【56†Collections】
L94: 
L95:   * Enterprise
L96: 
L97:     * ENTERPRISE SOLUTIONS
L98:       * 【19†Enterprise platformAI-powered developer platform】
L99:     * AVAILABLE ADD-ONS
L100:       * 【10†GitHub Advanced SecurityEnterprise-grade security features】
L101:       * 【57†Copilot for BusinessEnterprise-grade AI features】
L102:       * 【58†Premium SupportEnterprise-grade 24/7 support】
L103: 
L104:   * 【59†Pricing】
L105: 
L106: Search`/`
L107: 
L108: 【1†Sign in】
L109: 
L110: 【60†Sign up】
L111: 
L112: Appearance settings
L113: You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
L114: 
L115:   1. 【61†nodejs】
L116:   2. 【62†node】
L117: ## Repository navigation
L118: 
L119:   *   * 【62†Code】
L120:   * 【63†Issues627 (627)】
L121:   * 【64†Pull requests659 (659)】
L122:   * 【65…[truncated]</excerpt>
</source>
<source kind="open_page">
<title>fs: handle UV_ENOTDIR in `fs.statSync` with `throwIfNoEntry` provided · jasnell/node@409e28d · GitHub</title>
<location>https://github.com/jasnell/node/commit/409e28d5aa5285aba9ee613d7a727fdd2bb15f81</location>
<excerpt>citeturn2view0 [wordlim: 200] Crawled: today; Content type: text/html; Source: click({&quot;ref_id&quot;:&quot;turn1view0&quot;,&quot;id&quot;:91}); Total lines: 231
L0: 【0†Skip to content】
L1: ## Navigation Menu
L2: 
L3: 【1†Sign in】
L4: 
L5: Appearance settings
L6: 
L7:   * Platform
L8: 
L9:     * AI CODE CREATION
L10:       * 【2†GitHub CopilotWrite better code with AI】
L11:       * 【3†GitHub Copilot appDirect agents from issue to merge】
L12:       * 【4†MCP RegistryIntegrate external tools】
L13: 
L14:     * DEVELOPER WORKFLOWS
L15:       * 【5†ActionsAutomate any workflow】
L16:       * 【6†CodespacesInstant dev environments】
L17:       * 【7†IssuesPlan and track work】
L18:       * 【8†Code ReviewManage code changes】
L19:       * 【9†Code QualityEnforce quality at merge】
L20:     * APPLICATION SECURITY
L21:       * 【10†GitHub Advanced SecurityFind and fix vulnerabilities】
L22:       * 【11†Code securitySecure your code as you build】
L23:       * 【12†Secret protectionStop leaks before they start】
L24: 
L25:     * EXPLORE
L26:       * 【13†Why GitHub】
L27:       * 【14†Documentation†docs.github.com】
L28:       * 【15†Blog†github.blog】
L29:       * 【16†Changelog†github.blog】
L30:       * 【17†Marketplace】
L31: 
L32: 【18†View all features】
L33: 
L34:   * Solutions
L35:     * BY COMPANY SIZE
L36:       * 【19†Enterprises】
L37:       * 【20†Small and medium teams】
L38:       * 【21†Startups】
L39:       * 【22†Nonprofits】
L40: 
L41:     * BY USE CASE
L42:       * 【23†App Modernization】
L43:       * 【24†DevSecOps】
L44:       * 【25†DevOps】
L45:       * 【26†CI/CD】
L46:       * 【27†View all use cases】
L47: 
L48:     * BY INDUSTRY
L49:       * 【28†Healthcare】
L50:       * 【29†Financial services】
L51:       * 【30†Manufacturing】
L52:       * 【31†Government】
L53:       * 【32†See all industries】
L54: 
L55: 【33†View all solutions】
L56: 
L57:   * Resources
L58:     * EXPLORE BY TOPIC
L59:       * 【34†AI】
L60:       * 【35†Software Development】
L61:       * 【36†DevOps】
L62:       * 【37†Security】
L63:       * 【38†View all topics】
L64: 
L65:     * EXPLORE BY TYPE
L66:       * 【39†Customer stories】
L67:       * 【40†Events &amp; webinars】
L68:       * 【41†Ebooks &amp; reports】
L69:       * 【42†Business insights】
L70:       * 【43†GitHub Skills†skills.github.com】
L71:     * SUPPORT &amp; SERVICES
L72:       * 【14†Documentation†docs.github.com】
L73:       * 【44†Customer support†support.github.com】
L74:       * 【45†Community forum】
L75:       * 【46†Trust center】
L76:       * 【47†Partners】
L77: 
L78: 【48†View all resources】
L79: 
L80:   * Open Source
L81: 
L82:     * COMMUNITY
L83:       * 【49†GitHub SponsorsFund open source developers】
L84:     * PROGRAMS
L85:       * 【50†Security Lab†securitylab.github.com】
L86:       * 【51†Maintainer Community†maintainers.github.com】
L87:       * 【52†GitHub Stars†stars.github.com】
L88:       * 【53†Archive Program†archiveprogram.github.com】
L89: 
L90:     * REPOSITORIES
L91:       * 【54†Topics】
L92:       * 【55†Trending】
L93:       * 【56†Collections】
L94: 
L95:   * Enterprise
L96: 
L97:     * ENTERPRISE SOLUTIONS
L98:       * 【19†Enterprise platformAI-powered developer platform】
L99:     * AVAILABLE ADD-ONS
L100:       * 【10†GitHub Advanced SecurityEnterprise-grade security features】
L101:       * 【57†Copilot for BusinessEnterprise-grade AI features】
L102:       * 【58†Premium SupportEnterprise-grade 24/7 support】
L103: 
L104:   * 【59†Pricing】
L105: 
L106: Search`/`
L107: 
L108: 【1†Sign in】
L109: 
L110: 【60†Sign up】
L111: 
L112: Appearance settings
L113: You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
L114: 
L115:   1. 【61†jasnell】
L116:   2. 【62†node】
L117: ## Repository navigation
L118: 
L119:   *   * 【62†Code】
L120:   * 【63†Pull requests2 (2)】
L121:   * 【64†Actions】
L122:   * 【65†Security and quality】
L123:   * 【66†Insights】
L1…[truncated]</excerpt>
</source>
<source kind="open_page">
<title>fs: handle UV_ENOTDIR in `fs.statSync` with `throwIfNoEntry` provided · nodejs/node@40f3a51 · GitHub</title>
<location>https://github.com/nodejs/node/commit/40f3a516bf8dc798d37271bf0586011d939159ff</location>
<excerpt>citeturn2view1 [wordlim: 200] Crawled: today; Content type: text/html; Source: click({&quot;ref_id&quot;:&quot;turn1view0&quot;,&quot;id&quot;:94}); Total lines: 233
L0: 【0†Skip to content】
L1: ## Navigation Menu
L2: 
L3: 【1†Sign in】
L4: 
L5: Appearance settings
L6: 
L7:   * Platform
L8: 
L9:     * AI CODE CREATION
L10:       * 【2†GitHub CopilotWrite better code with AI】
L11:       * 【3†GitHub Copilot appDirect agents from issue to merge】
L12:       * 【4†MCP RegistryIntegrate external tools】
L13: 
L14:     * DEVELOPER WORKFLOWS
L15:       * 【5†ActionsAutomate any workflow】
L16:       * 【6†CodespacesInstant dev environments】
L17:       * 【7†IssuesPlan and track work】
L18:       * 【8†Code ReviewManage code changes】
L19:       * 【9†Code QualityEnforce quality at merge】
L20:     * APPLICATION SECURITY
L21:       * 【10†GitHub Advanced SecurityFind and fix vulnerabilities】
L22:       * 【11†Code securitySecure your code as you build】
L23:       * 【12†Secret protectionStop leaks before they start】
L24: 
L25:     * EXPLORE
L26:       * 【13†Why GitHub】
L27:       * 【14†Documentation†docs.github.com】
L28:       * 【15†Blog†github.blog】
L29:       * 【16†Changelog†github.blog】
L30:       * 【17†Marketplace】
L31: 
L32: 【18†View all features】
L33: 
L34:   * Solutions
L35:     * BY COMPANY SIZE
L36:       * 【19†Enterprises】
L37:       * 【20†Small and medium teams】
L38:       * 【21†Startups】
L39:       * 【22†Nonprofits】
L40: 
L41:     * BY USE CASE
L42:       * 【23†App Modernization】
L43:       * 【24†DevSecOps】
L44:       * 【25†DevOps】
L45:       * 【26†CI/CD】
L46:       * 【27†View all use cases】
L47: 
L48:     * BY INDUSTRY
L49:       * 【28†Healthcare】
L50:       * 【29†Financial services】
L51:       * 【30†Manufacturing】
L52:       * 【31†Government】
L53:       * 【32†See all industries】
L54: 
L55: 【33†View all solutions】
L56: 
L57:   * Resources
L58:     * EXPLORE BY TOPIC
L59:       * 【34†AI】
L60:       * 【35†Software Development】
L61:       * 【36†DevOps】
L62:       * 【37†Security】
L63:       * 【38†View all topics】
L64: 
L65:     * EXPLORE BY TYPE
L66:       * 【39†Customer stories】
L67:       * 【40†Events &amp; webinars】
L68:       * 【41†Ebooks &amp; reports】
L69:       * 【42†Business insights】
L70:       * 【43†GitHub Skills†skills.github.com】
L71:     * SUPPORT &amp; SERVICES
L72:       * 【14†Documentation†docs.github.com】
L73:       * 【44†Customer support†support.github.com】
L74:       * 【45†Community forum】
L75:       * 【46†Trust center】
L76:       * 【47†Partners】
L77: 
L78: 【48†View all resources】
L79: 
L80:   * Open Source
L81: 
L82:     * COMMUNITY
L83:       * 【49†GitHub SponsorsFund open source developers】
L84:     * PROGRAMS
L85:       * 【50†Security Lab†securitylab.github.com】
L86:       * 【51†Maintainer Community†maintainers.github.com】
L87:       * 【52†GitHub Stars†stars.github.com】
L88:       * 【53†Archive Program†archiveprogram.github.com】
L89: 
L90:     * REPOSITORIES
L91:       * 【54†Topics】
L92:       * 【55†Trending】
L93:       * 【56†Collections】
L94: 
L95:   * Enterprise
L96: 
L97:     * ENTERPRISE SOLUTIONS
L98:       * 【19†Enterprise platformAI-powered developer platform】
L99:     * AVAILABLE ADD-ONS
L100:       * 【10†GitHub Advanced SecurityEnterprise-grade security features】
L101:       * 【57†Copilot for BusinessEnterprise-grade AI features】
L102:       * 【58†Premium SupportEnterprise-grade 24/7 support】
L103: 
L104:   * 【59†Pricing】
L105: 
L106: Search`/`
L107: 
L108: 【1†Sign in】
L109: 
L110: 【60†Sign up】
L111: 
L112: Appearance settings
L113: You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
L114: 
L115:   1. 【61†nodejs】
L116:   2. 【62†node】
L117: ## Repository navigation
L118: 
L119:   *   * 【62†Code】
L120:   * 【63†Issues632 (632)】
L121:   * 【64†Pull requests663 (663)】
L122:   * 【65†Actions】
L123:   * 【66†Projects】
L124…[truncated]</excerpt>
</source>
<source kind="open_page">
<title>statSync with throwIfNoEntry: false still throws ENOTDIR · Issue #56993 · nodejs/node · GitHub</title>
<location>GitHub issue 56993 in nodejs/node (link omitted to avoid creating a cross-reference)</location>
<excerpt>citeturn2view3 [wordlim: 200] Crawled: today; Content type: text/html; Source: click({&quot;ref_id&quot;:&quot;turn1view0&quot;,&quot;id&quot;:103}); Total lines: 403
</excerpt>
</source>
<source kind="search">
<title>Issues · nodejs/node · GitHub</title>
<location>https://github.com/nodejs/node/issues/</location>
<excerpt>citeturn0search0 [wordlim: 200] Crawled: last month; nodejs / node Public ... New issue Issue creation is restricted in this repository ... docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.

nodejs / node Public

  * ### Uh oh!

There was an error while loading. Please reload this page.

  * Notifications You must be signed in to change notification settings
  * Fork 37.3k
  * Star

  * Code
  * Issues 624
  * Pull requests 550
  * Actions
  * Projects
  * Security and quality 0
  * Insights


# All issues

New issue Issue creation is restricted in this repository

## Issues

Search Issues

is:issue state:open

is:issue state:open

[Input: Search Issues]

Search

## Search results

  * ### deps: backport V8 LLE alias fix to 26.x and 24.x

Status: Open.

#66112 In nodejs/node;

· mcollina opened on Sep 18, 2026

  * ### Stream.prototype.forEach will block in first promise in queue before read more chunk

docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.

Status: Open.

#66106 In nodejs/node;

· zyf0330 opened on Sep 18, 2026

  * ### zlib: reset() after flush() silently produces an undecodable zstd stream

Status: Open.

#66087 In nodejs/node;

· xia-chao opened on Sep 17, 2026

  * ### test_runner: allow adapters to handle individual unhandled promise rejections

feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.

Status: Open.

#66084 In nodejs/node;

· domenic opened on Sep 17, 2026

  * ### V8 Turboshaft LLE alias bug (554421904) not backported to V8 14.6 (Node.js v26)

Status: Open.

#66083 In nodejs/node;

· thawkhant opened on Sep 17, 2026

  * ### zlib: createZstdCompress appends an empty frame when end() is called with writes still queued

Status: Open.

#66078 In nodejs/node;

· trotzig opened on Sep 17, 2026

  * ### nodejs 26.8.2 fails to build with clang/LLVM

buildIssues and PRs related to Node.js builds or CI infrastructure.Issues and PRs related to Node.js builds or CI infrastructure.

Status: Open.

#66076 In nodejs/node;

· listout opened on Sep 17, 2026

  * ### v8: Node 26.9.0 crashes with `Check failed: new_capacity &gt; 0.` when `Error.stackTraceLimit` is set above 357913941 with `--trace-uncaught`

confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.

v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.

Status: Open.

#66074 In nodejs/node;

· silverwind opened on Sep 16, 2026

  * ### buffer: utilities to check whether a Buffer or string fits in memory before creating it

feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.

Status: Open.

#66062 In nodejs/node;

· mcollina opened on Sep 16, 2026

  * ### `test-run-watch-cwd-isolation-none-*` flaky

flaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.

windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.

Status: Open.

#66056 In nodejs/node;

· aduh95 opened on Sep 16, 2026

  * ### v24: discarded vm contexts cause OOM; possible V8 backport

confirmed-bugIssues and PRs for confirmed bugs.Issues and PRs for confirmed bugs.

v24.xIssues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.Issues that can be reproduced on v24.x or PRs targeting the v24.x-staging branch.

v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.

vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.

Status: Open.

#66053 In nodejs/node;

· domenic opened on Sep 16, 2026

  * ### Package map entry whose url resolves to a directory-form URL never matches its files

Status: Open.

#66043 In nodejs/node;

· christopher-buss opened on Sep 15, 2026</excerpt>
</source>
<omitted_sources count="27">Additional source records were omitted from this bounded result.</omitted_sources>
</source_evidence>

Citations:

- 1: GitHub issue 56993 in nodejs/node (link omitted to avoid creating a cross-reference)
- 2: GitHub issue 56993 in nodejs/node (link omitted to avoid creating a cross-reference)
- 3: GitHub issue 56993 in nodejs/node (link omitted to avoid creating a cross-reference)

Web query:

Node.js 409e28d 40f3a516 UV_ENOTDIR fs.statSync throwIfNoEntry release backport Node 22 Node 24

Result:

<source_evidence>
<source kind="open_page">
<title>fs: handle UV_ENOTDIR in `fs.statSync` with `throwIfNoEntry` provided · nodejs/node@409e28d · GitHub</title>
<location>https://github.com/nodejs/node/commit/409e28d</location>
<excerpt>citeturn1view0 [wordlim: 200] Crawled: today; Content type: text/html; Source: open({&quot;ref_id&quot;:&quot;https://github.com/nodejs/node/commit/409e28d&quot;,&quot;lineno&quot;:null}); Total lines: 233
L0: 【0†Skip to content】
L1: ## Navigation Menu
L2: 
L3: 【1†Sign in】
L4: 
L5: Appearance settings
L6: 
L7:   * Platform
L8: 
L9:     * AI CODE CREATION
L10:       * 【2†GitHub CopilotWrite better code with AI】
L11:       * 【3†GitHub Copilot appDirect agents from issue to merge】
L12:       * 【4†MCP RegistryIntegrate external tools】
L13: 
L14:     * DEVELOPER WORKFLOWS
L15:       * 【5†ActionsAutomate any workflow】
L16:       * 【6†CodespacesInstant dev environments】
L17:       * 【7†IssuesPlan and track work】
L18:       * 【8†Code ReviewManage code changes】
L19:       * 【9†Code QualityEnforce quality at merge】
L20:     * APPLICATION SECURITY
L21:       * 【10†GitHub Advanced SecurityFind and fix vulnerabilities】
L22:       * 【11†Code securitySecure your code as you build】
L23:       * 【12†Secret protectionStop leaks before they start】
L24: 
L25:     * EXPLORE
L26:       * 【13†Why GitHub】
L27:       * 【14†Documentation†docs.github.com】
L28:       * 【15†Blog†github.blog】
L29:       * 【16†Changelog†github.blog】
L30:       * 【17†Marketplace】
L31: 
L32: 【18†View all features】
L33: 
L34:   * Solutions
L35:     * BY COMPANY SIZE
L36:       * 【19†Enterprises】
L37:       * 【20†Small and medium teams】
L38:       * 【21†Startups】
L39:       * 【22†Nonprofits】
L40: 
L41:     * BY USE CASE
L42:       * 【23†App Modernization】
L43:       * 【24†DevSecOps】
L44:       * 【25†DevOps】
L45:       * 【26†CI/CD】
L46:       * 【27†View all use cases】
L47: 
L48:     * BY INDUSTRY
L49:       * 【28†Healthcare】
L50:       * 【29†Financial services】
L51:       * 【30†Manufacturing】
L52:       * 【31†Government】
L53:       * 【32†See all industries】
L54: 
L55: 【33†View all solutions】
L56: 
L57:   * Resources
L58:     * EXPLORE BY TOPIC
L59:       * 【34†AI】
L60:       * 【35†Software Development】
L61:       * 【36†DevOps】
L62:       * 【37†Security】
L63:       * 【38†View all topics】
L64: 
L65:     * EXPLORE BY TYPE
L66:       * 【39†Customer stories】
L67:       * 【40†Events &amp; webinars】
L68:       * 【41†Ebooks &amp; reports】
L69:       * 【42†Business insights】
L70:       * 【43†GitHub Skills†skills.github.com】
L71:     * SUPPORT &amp; SERVICES
L72:       * 【14†Documentation†docs.github.com】
L73:       * 【44†Customer support†support.github.com】
L74:       * 【45†Community forum】
L75:       * 【46†Trust center】
L76:       * 【47†Partners】
L77: 
L78: 【48†View all resources】
L79: 
L80:   * Open Source
L81: 
L82:     * COMMUNITY
L83:       * 【49†GitHub SponsorsFund open source developers】
L84:     * PROGRAMS
L85:       * 【50†Security Lab†securitylab.github.com】
L86:       * 【51†Maintainer Community†maintainers.github.com】
L87:       * 【52†GitHub Stars†stars.github.com】
L88:       * 【53†Archive Program†archiveprogram.github.com】
L89: 
L90:     * REPOSITORIES
L91:       * 【54†Topics】
L92:       * 【55†Trending】
L93:       * 【56†Collections】
L94: 
L95:   * Enterprise
L96: 
L97:     * ENTERPRISE SOLUTIONS
L98:       * 【19†Enterprise platformAI-powered developer platform】
L99:     * AVAILABLE ADD-ONS
L100:       * 【10†GitHub Advanced SecurityEnterprise-grade security features】
L101:       * 【57†Copilot for BusinessEnterprise-grade AI features】
L102:       * 【58†Premium SupportEnterprise-grade 24/7 support】
L103: 
L104:   * 【59†Pricing】
L105: 
L106: Search`/`
L107: 
L108: 【1†Sign in】
L109: 
L110: 【60†Sign up】
L111: 
L112: Appearance settings
L113: You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
L114: 
L115:   1. 【61†nodejs】
L116:   2. 【62†node】
L117: ## Repository navigation
L118: 
L119:   *   * 【62†Code】
L120:   * 【63†Issues632 (632)】
L121:   * 【64†Pull requests663 (663)】
L122:   * 【…[truncated]</excerpt>
</source>
<source kind="open_page">
<title>fs: handle UV_ENOTDIR in `fs.statSync` with `throwIfNoEntry` provided · nodejs/node@40f3a51 · GitHub</title>
<location>https://github.com/nodejs/node/commit/40f3a516</location>
<excerpt>citeturn1view1 [wordlim: 200] Crawled: today; Content type: text/html; Source: open({&quot;ref_id&quot;:&quot;https://github.com/nodejs/node/commit/40f3a516&quot;,&quot;lineno&quot;:null}); Total lines: 233
L0: 【0†Skip to content】
L1: ## Navigation Menu
L2: 
L3: 【1†Sign in】
L4: 
L5: Appearance settings
L6: 
L7:   * Platform
L8: 
L9:     * AI CODE CREATION
L10:       * 【2†GitHub CopilotWrite better code with AI】
L11:       * 【3†GitHub Copilot appDirect agents from issue to merge】
L12:       * 【4†MCP RegistryIntegrate external tools】
L13: 
L14:     * DEVELOPER WORKFLOWS
L15:       * 【5†ActionsAutomate any workflow】
L16:       * 【6†CodespacesInstant dev environments】
L17:       * 【7†IssuesPlan and track work】
L18:       * 【8†Code ReviewManage code changes】
L19:       * 【9†Code QualityEnforce quality at merge】
L20:     * APPLICATION SECURITY
L21:       * 【10†GitHub Advanced SecurityFind and fix vulnerabilities】
L22:       * 【11†Code securitySecure your code as you build】
L23:       * 【12†Secret protectionStop leaks before they start】
L24: 
L25:     * EXPLORE
L26:       * 【13†Why GitHub】
L27:       * 【14†Documentation†docs.github.com】
L28:       * 【15†Blog†github.blog】
L29:       * 【16†Changelog†github.blog】
L30:       * 【17†Marketplace】
L31: 
L32: 【18†View all features】
L33: 
L34:   * Solutions
L35:     * BY COMPANY SIZE
L36:       * 【19†Enterprises】
L37:       * 【20†Small and medium teams】
L38:       * 【21†Startups】
L39:       * 【22†Nonprofits】
L40: 
L41:     * BY USE CASE
L42:       * 【23†App Modernization】
L43:       * 【24†DevSecOps】
L44:       * 【25†DevOps】
L45:       * 【26†CI/CD】
L46:       * 【27†View all use cases】
L47: 
L48:     * BY INDUSTRY
L49:       * 【28†Healthcare】
L50:       * 【29†Financial services】
L51:       * 【30†Manufacturing】
L52:       * 【31†Government】
L53:       * 【32†See all industries】
L54: 
L55: 【33†View all solutions】
L56: 
L57:   * Resources
L58:     * EXPLORE BY TOPIC
L59:       * 【34†AI】
L60:       * 【35†Software Development】
L61:       * 【36†DevOps】
L62:       * 【37†Security】
L63:       * 【38†View all topics】
L64: 
L65:     * EXPLORE BY TYPE
L66:       * 【39†Customer stories】
L67:       * 【40†Events &amp; webinars】
L68:       * 【41†Ebooks &amp; reports】
L69:       * 【42†Business insights】
L70:       * 【43†GitHub Skills†skills.github.com】
L71:     * SUPPORT &amp; SERVICES
L72:       * 【14†Documentation†docs.github.com】
L73:       * 【44†Customer support†support.github.com】
L74:       * 【45†Community forum】
L75:       * 【46†Trust center】
L76:       * 【47†Partners】
L77: 
L78: 【48†View all resources】
L79: 
L80:   * Open Source
L81: 
L82:     * COMMUNITY
L83:       * 【49†GitHub SponsorsFund open source developers】
L84:     * PROGRAMS
L85:       * 【50†Security Lab†securitylab.github.com】
L86:       * 【51†Maintainer Community†maintainers.github.com】
L87:       * 【52†GitHub Stars†stars.github.com】
L88:       * 【53†Archive Program†archiveprogram.github.com】
L89: 
L90:     * REPOSITORIES
L91:       * 【54†Topics】
L92:       * 【55†Trending】
L93:       * 【56†Collections】
L94: 
L95:   * Enterprise
L96: 
L97:     * ENTERPRISE SOLUTIONS
L98:       * 【19†Enterprise platformAI-powered developer platform】
L99:     * AVAILABLE ADD-ONS
L100:       * 【10†GitHub Advanced SecurityEnterprise-grade security features】
L101:       * 【57†Copilot for BusinessEnterprise-grade AI features】
L102:       * 【58†Premium SupportEnterprise-grade 24/7 support】
L103: 
L104:   * 【59†Pricing】
L105: 
L106: Search`/`
L107: 
L108: 【1†Sign in】
L109: 
L110: 【60†Sign up】
L111: 
L112: Appearance settings
L113: You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
L114: 
L115:   1. 【61†nodejs】
L116:   2. 【62†node】
L117: ## Repository navigation
L118: 
L119:   *   * 【62†Code】
L120:   * 【63†Issues632 (632)】
L121:   * 【64†Pull requests664 (664)】
L122:   * …[truncated]</excerpt>
</source>
<source kind="open_page">
<title>statSync with throwIfNoEntry: false still throws ENOTDIR · Issue #56993 · nodejs/node · GitHub</title>
<location>GitHub issue 56993 in nodejs/node (link omitted to avoid creating a cross-reference)</location>
<excerpt>citeturn1view2 [wordlim: 200] Crawled: today; Content type: text/html; Source: open({&quot;ref_id&quot;:&quot;https://github.com/nodejs/node/issues/56993&quot;,&quot;lineno&quot;:null}); Total lines: 403
L0: 【0†Skip to content】
L1: ## Navigation Menu
L2: 
L3: 【1†Sign in】
L4: 
L5: Appearance settings
L6: 
L7:   * Platform
L8: 
L9:     * AI CODE CREATION
L10:       * 【2†GitHub CopilotWrite better code with AI】
L11:       * 【3†GitHub Copilot appDirect agents from issue to merge】
L12:       * 【4†MCP RegistryIntegrate external tools】
L13: 
L14:     * DEVELOPER WORKFLOWS
L15:       * 【5†ActionsAutomate any workflow】
L16:       * 【6†CodespacesInstant dev environments】
L17:       * 【7†IssuesPlan and track work】
L18:       * 【8†Code ReviewManage code changes】
L19:       * 【9†Code QualityEnforce quality at merge】
L20:     * APPLICATION SECURITY
L21:       * 【10†GitHub Advanced SecurityFind and fix vulnerabilities】
L22:       * 【11†Code securitySecure your code as you build】
L23:       * 【12†Secret protectionStop leaks before they start】
L24: 
L25:     * EXPLORE
L26:       * 【13†Why GitHub】
L27:       * 【14†Documentation†docs.github.com】
L28:       * 【15†Blog†github.blog】
L29:       * 【16†Changelog†github.blog】
L30:       * 【17†Marketplace】
L31: 
L32: 【18†View all features】
L33: 
L34:   * Solutions
L35:     * BY COMPANY SIZE
L36:       * 【19†Enterprises】
L37:       * 【20†Small and medium teams】
L38:       * 【21†Startups】
L39:       * 【22†Nonprofits】
L40: 
L41:     * BY USE CASE
L42:       * 【23†App Modernization】
L43:       * 【24†DevSecOps】
L44:       * 【25†DevOps】
L45:       * 【26†CI/CD】
L46:       * 【27†View all use cases】
L47: 
L48:     * BY INDUSTRY
L49:       * 【28†Healthcare】
L50:       * 【29†Financial services】
L51:       * 【30†Manufacturing】
L52:       * 【31†Government】
L53:       * 【32†See all industries】
L54: 
L55: 【33†View all solutions】
L56: 
L57:   * Resources
L58:     * EXPLORE BY TOPIC
L59:       * 【34†AI】
L60:       * 【35†Software Development】
L61:       * 【36†DevOps】
L62:       * 【37†Security】
L63:       * 【38†View all topics】
L64: 
L65:     * EXPLORE BY TYPE
L66:       * 【39†Customer stories】
L67:       * 【40†Events &amp; webinars】
L68:       * 【41†Ebooks &amp; reports】
L69:       * 【42†Business insights】
L70:       * 【43†GitHub Skills†skills.github.com】
L71:     * SUPPORT &amp; SERVICES
L72:       * 【14†Documentation†docs.github.com】
L73:       * 【44†Customer support†support.github.com】
L74:       * 【45†Community forum】
L75:       * 【46†Trust center】
L76:       * 【47†Partners】
L77: 
L78: 【48†View all resources】
L79: 
L80:   * Open Source
L81: 
L82:     * COMMUNITY
L83:       * 【49†GitHub SponsorsFund open source developers】
L84:     * PROGRAMS
L85:       * 【50†Security Lab†securitylab.github.com】
L86:       * 【51†Maintainer Community†maintainers.github.com】
L87:       * 【52†GitHub Stars†stars.github.com】
L88:       * 【53†Archive Program†archiveprogram.github.com】
L89: 
L90:     * REPOSITORIES
L91:       * 【54†Topics】
L92:       * 【55†Trending】
L93:       * 【56†Collections】
L94: 
L95:   * Enterprise
L96: 
L97:     * ENTERPRISE SOLUTIONS
L98:       * 【19†Enterprise platformAI-powered developer platform】
L99:     * AVAILABLE ADD-ONS
L100:       * 【10†GitHub Advanced SecurityEnterprise-grade security features】
L101:       * 【57†Copilot for BusinessEnterprise-grade AI features】
L102:       * 【58†Premium SupportEnterprise-grade 24/7 support】
L103: 
L104:   * 【59†Pricing】
L105: 
L106: Search`/`
L107: 
L108: 【1†Sign in】
L109: 
L110: 【60†Sign up】
L111: 
L112: Appearance settings
L113: You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
L114: 
L115:   1. 【61†nodejs】
L116:   2. 【62†node】
L117: ## Repository navigation
L118: 
L119:   *   * 【62†Code】
L120:   * 【63†Issues632 (632)】
L121:   * 【64†Pull requests663 (663)】
L122:   * 【65…[truncated]</excerpt>
</source>
<source kind="search">
<title>statSync with throwIfNoEntry: false still throws ENOTDIR · Issue #56993 · nodejs/node · GitHub</title>
<location>GitHub issue 56993 in nodejs/node (link omitted to avoid creating a cross-reference)</location>
<excerpt>citeturn0search4 [wordlim: 200] Published: 1.7 years ago; Crawled: last month; # statSync with throwIfNoEntry: false still throws ENOTDIR #56993 ... &gt; fs.statSync(&#39;./a/b&#39;, { throwIfNoEntry: false }) // throws ENOTDIR error

# statSync with throwIfNoEntry: false still throws ENOTDIR #56993

New issue

Copy link

New issue

Copy link

Closed

Closed

statSync with throwIfNoEntry: false still throws ENOTDIR#56993

Copy link

Labels

fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.

## Description

jdalton

opened on Feb 10, 2025

### Version

at least Node 20+

### Platform
    
    `osx
    `

### Subsystem

No response

### What steps will reproduce the bug?

in your terminal of choice

&gt; touch a

then enter into `node` repl

&gt; fs.statSync(&#39;./a/b&#39;, { throwIfNoEntry: false }) // throws ENOTDIR error

### How often does it reproduce? Is there a required condition?

a file exists in part of the path.

### What is the expected behavior? Why is that the expected behavior?

I would expect `undefined` to be returned instead of erroring.

### What do you see instead?

it throws a ENOTDIR error.

## Activity

to join this conversation on GitHub. Already have an account? Sign in to comment

## Metadata

## Metadata

### Assignees

No one assigned

### Labels

fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.

### Type

No type

### Projects

No projects

### Milestone

No milestone

### Relationships

None yet

### Development

No branches or pull requests</excerpt>
</source>
<source kind="search">
<title>Releases · nodejs/node · GitHub</title>
<location>https://github.com/nodejs/node/releases</location>
<excerpt>citeturn0search0 [wordlim: 200] Crawled: 4 days ago;   * [`2a3548e51c`] - deps: update Undici to 6.28.1 (mcollina) #65790 ...   * [[`89aa2bd10c`](https://github.com/nodejs/node/commi...

# Releases: nodejs/node

Releases Tags

## Release list

  * 2026-10-21, Version 26.12.1 (Current), @aduh95 prepared by @RafaelGSS
  * 2026-10-21, Version 24.22.1 &#39;Krypton&#39; (LTS), @aduh95
  * 2026-10-21, Version 22.23.4 &#39;Jod&#39; (LTS), @aduh95
  * 2026-10-14, Version 26.12.0 (Current), @richardlau
  * 2026-10-14, Version 24.22.0 &#39;Krypton&#39; (LTS), @richardlau prepared by @aduh95
  * 2026-10-07, Version 26.11.1 (Current), @aduh95
  * 2026-10-07, Version 26.11.0 (Current), @aduh95
  * 2026-09-23, Version 22.23.3 &#39;Jod&#39; (LTS), @aduh95 prepared by @juanarbol
  * 2026-09-22, Version 26.10.0 (Current), @aduh95
  * 2026-09-16, Version 26.9.0 (Current), @aduh95

Jump to release


## 2026-10-21, Version 26.12.1 (Current), @aduh95 prepared by @RafaelGSS

2026-10-21, Version 26.12.1 (Current), @aduh95 prepared by @RafaelGSS

Latest

Compare

# Choose a tag to compare

## Sorry, something went wrong.

Filter

Loading [Input]

## Sorry, something went wrong.

### Uh oh!

There was an error while loading. Please reload this page.

## No results found

View all tags

Image: @aduh95 aduh95 released this 21 Oct 10:38

v26.12.1

This tag was signed with the committer’s verified signature.

aduh95 Antoine du Hamel

GPG key ID: 20B1A390B168D356

Verified

Learn about vigilant mode.

`bc2e01d`

This commit was signed with the committer’s verified signature.

aduh95 Antoine du Hamel

GPG key ID: 20B1A390B168D356

Verified

Learn about vigilant mode.

This is a security release.

### Notable Changes

  * (CVE-2026-106069, CVE-2026-106072) tls: reject non-canonical IP addresses (Matteo Collina) – High
  * (CVE-2026-105482) dns: validate resolve inputs for null bytes (James M Snell) – High
  * (CVE-2026-105483) tls: fix ip normalization regression (James M Snell) – High
  * (CVE-2026-111497) src: expose `BROTLI_DECODER_ERROR_FORMAT_BLOCK_SWITCH` (Antoine du Hamel) – High
  * (CVE-2026-111497) deps: brotli: cherry-pick 0ed4268a4401abcb44720963 (Evgenii Kliuchnikov) – High
  * (CVE-2026-105481) http: ensure agent data guard works without I/O (James M Snell) – Medium
  * (CVE-2026-106074) crypto: reset random caches across snapshots (Filip Skokan) – Medium
  * (CVE-2026-106070) zlib: avoid caching invalid ZIP local headers (Matteo Collina) – Low
  * (CVE-2026-106071) src: fix the fs permission tree node on wildcard nodes (James M Snell) – Low
  * (CVE-2026-106073) permission: check permission model in realpathSync (RafaelGSS) – Low
  * deps: V8: backport 93cd21e8254b (Joyee Cheung)
  * crypto: update root certificates to NSS 3.131.1 (Antoine du Hamel)
  * tls: reject chains containing blocked public keys (Ulises Gascon)
  * deps: update c-ares to 1.34.9 (Node.js GitHub Bot)
  * tools: retry Gatekeeper check and stapling after notarization (Ryan Aslett)
  * crypto: harden X.509 conversion and formatting (Filip Skokan)

### Commits

  * [`818e4ca061`] - crypto: update root certificates to NSS 3.131.1 (Antoine du Hamel) #66877
  * [`fd3c87ed43`] - crypto: harden X.509 conversion and formatting (Filip Skokan) nodejs-private/node-private#966
  * [`acffa610db`] - crypto: reset random caches across snapshots (Filip Skokan) nodejs-private/node-private#987
  * [`7895a5cd2d`] - deps: update undici to 8.12.2 (Node.js GitHub Bot) #66721
  * [`12daa54d2e`] - deps: V8: backport 93cd21e8254b (Joyee Cheung) nodejs-private/node-private#999
  * [`6a8b3db7e2`] - deps: update c-ares to 1.34.9 (Node.js GitHub Bot) #66868
  * [`a6040b50d9`] - deps: brotli: cherry-pick 0ed4268a4401abcb44720963 (Evgenii Kliuchnikov) nodejs-private/node-private#1002
  * [`6b78ea171d`] - dns: validate resolve inputs for null bytes (James M Snell) nodejs-private/node-private#984

## 2026-10-14, Version 26.12.0 (Current), @richardlau

2026-10-14, Version 26.12.0 (Current), @…[truncated]</excerpt>
</source>
<omitted_sources count="23">Additional source records were omitted from this bounded result.</omitted_sources>
</source_evidence>

Citations:

- 1: https://github.com/nodejs/node/commit/409e28d
- 2: GitHub issue 56993 in nodejs/node (link omitted to avoid creating a cross-reference)
- 3: https://github.com/nodejs/node/commit/409e28d

Script executed:

set -o pipefail
sed -n '10845,10905p' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/dist/chunks/cli-api.De07GUeT.js
sed -n '85,115p' node_modules/.pnpm/vitest@5.0.5_patch_hash=a8c4c8af3636bf5cc481bd7ebcaa39c47a6dcc3d12fb3f66559953fe3e8671e_2246e3bf613442cffb3138208c8ec861/node_modules/vitest/dist/chunks/init.PvxYpuCm.js

Repository: stablyai/orca

Length of output: 3361


Catch non-ENOENT errors from the stat guard.

parseStacktrace calls getSourceMap for each frame. On supported Node versions, statSync(file, { throwIfNoEntry: false }) can throw ENOTDIR for a path with a file component. The exception reaches _reportFileTask, which records it as an "Unhandled Reporter Error" instead of ignoring the frame. Catch the stat failure and skip source-map lookup.

Suggested fix
-						if (!project.vite.moduleGraph.getModuleById(file)?.transformResult &amp;&amp; statSync(file, { throwIfNoEntry: false })?.isFile()) {
+						if (project.vite.moduleGraph.getModuleById(file)?.transformResult) return;
+						let isFile;
+						try {
+							isFile = statSync(file, { throwIfNoEntry: false })?.isFile();
+						} catch {
+							return;
+						}
+						if (isFile) {

const code = readFileSync(file, "utf-8");
return extractSourcemapFromFile(code, file)?.map;
}
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading