Skip to content

fix(ext/node): emit error event for worker_threads terminal errors#32052

Merged
littledivy merged 5 commits intodenoland:mainfrom
littledivy:worker_thread_error_event
Feb 5, 2026
Merged

fix(ext/node): emit error event for worker_threads terminal errors#32052
littledivy merged 5 commits intodenoland:mainfrom
littledivy:worker_thread_error_event

Conversation

@littledivy
Copy link
Copy Markdown
Member

Fixes test-worker-error-stack-getter-throws.js

Comment on lines +240 to +241
// When prepareStackTrace throws, stack should be undefined
// like Node.js behavior
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If prepareStackTrace throws then the control flow will exit this function, wouldn't it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

No this is the host-side, this is for when prepareStackTrace throws in the worker

littledivy and others added 2 commits February 5, 2026 13:05
Signed-off-by: Divy <dj.srivastava23@gmail.com>
littledivy and others added 2 commits February 5, 2026 16:27
Signed-off-by: Divy <dj.srivastava23@gmail.com>
@littledivy littledivy merged commit 5afc23e into denoland:main Feb 5, 2026
21 checks passed
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.

2 participants