Skip to content

Implement noop versions of the undocumented Console handler callbacks#5610

Merged
petebacondarwin merged 1 commit intomainfrom
pbd/node/console-fixes
Dec 1, 2025
Merged

Implement noop versions of the undocumented Console handler callbacks#5610
petebacondarwin merged 1 commit intomainfrom
pbd/node/console-fixes

Conversation

@petebacondarwin
Copy link
Copy Markdown
Contributor

The current implementation throws "not implemented" errors when _stderrErrorHandler and _stdoutErrorHandler are called, which is different to Node.js and the unenv polyfill. Now they are simple noops, inline with unenv.

This change will allow us to safely remove the node:console polyfill from the Cloudflare unenv preset.

For reference:

Node.js implementation
unenv implementation

@petebacondarwin
Copy link
Copy Markdown
Contributor Author

Moved unresolved unrelated comments over to #5615.

@petebacondarwin petebacondarwin merged commit c40d42f into main Dec 1, 2025
21 of 22 checks passed
@petebacondarwin petebacondarwin deleted the pbd/node/console-fixes branch December 1, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants