-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Progress for Next.js #4468
Progress for Next.js #4468
Conversation
#4236 |
According to the node docs on IPC:
The internal implementation I'm working with so far does not look anything like node's at all, so even if this symbol existed with some value, it simply wouldn't work. All of the IPC code is done in native. This library should use |
❌ @paperdave 11 files with test failures on bun-darwin-x64-baseline:
|
child_process.fork
/ ipc channels
Closes #3620 |
❌ @paperdave 17 files with test failures on bun-darwin-aarch64:
|
❌ @paperdave 7 files with test failures on linux-x64-baseline:
|
❌ @paperdave 6 files with test failures on linux-x64:
|
test/js/node/fs/fs.test.ts
Outdated
@@ -2025,7 +2025,7 @@ it("BigIntStats", () => { | |||
it("test syscall errno, issue#4198", () => { | |||
const path = `${tmpdir()}/non-existent-${Date.now()}.txt`; | |||
expect(() => openSync(path, "r")).toThrow("No such file or directory"); | |||
expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("Bad file number"); | |||
expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("EBADF"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("EBADF"); | |
if (os.platform() == "darwin") { | |
expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("Bad file descriptor"); | |
} else { | |
expect(() => readSync(2147483640, Buffer.alloc(0))).toThrow("Bad file number"); | |
} | |
os
is not imported.
Tried to test this canary release, but it seems like something broke regarding macos arm64. https://github.com/oven-sh/bun/actions/runs/6109378228/job/16580283046 |
|
process.send is only defined when IPC is enabled. make sure you are using child_processs.fork to enable it, and note it only works for bun <-> bun communication right now. |
What does this PR do?
child_process.fork
/ ipc channels. Closes Implementchild_process.fork()
#3620BUN_OVERRIDE_MODULE_PATH
(it doesn't do anything)fs.promises.opendir
v8.getHeapStatistics
node:
torequire.resolve("without_prefix")
require('module')._resolveFilename
fs.WriteStream
andNativeWritable
function-style classesreq.socket
=== thesocket
passed to the"upgrade"
event.bun dev
. closesbun run dev
acts differently thanbun dev
#4166bun create
executecreate-
packages. closesbun create
to be compatible withnpm create
#485How did you verify your code works?
I've been testing with Next.js to get it farther.