Skip to content
Merged
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
7 changes: 7 additions & 0 deletions scripts/build/unified.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ const noUnify: readonly string[] = [
// which conditional branches fire.
"src/bun.js/bindings/ProcessBindingUV.cpp",

// Uses `#ifdef S_IFBLK` / `#ifdef S_IFSOCK` etc. to decide which constants
// to expose in `fs.constants` — Node.js omits these on Windows. When
// bundled after NodeFSStatBinding.cpp (which `#define`s them for its own
// S_IS*() helpers on Windows), the ifdefs fire and the constants leak into
// `fs.constants`, breaking Node.js parity and test/js/node/fs/fs.test.ts.
"src/bun.js/bindings/ProcessBindingConstants.cpp",

// Defines extern "C" replacements for platform symbols (strncasecmp,
// fstat64, environ, ...). On Windows an earlier sibling can leak
// `#define strncasecmp _strnicmp`, turning the definition here into a
Expand Down
Loading