Skip to content

fix: error message mutation in toString method#47

Merged
chenjiahan merged 1 commit intorstackjs:mainfrom
tec27:patch-1
Nov 16, 2025
Merged

fix: error message mutation in toString method#47
chenjiahan merged 1 commit intorstackjs:mainfrom
tec27:patch-1

Conversation

@tec27
Copy link
Contributor

@tec27 tec27 commented Nov 16, 2025

Don't think this was intentional, and many errors have non-writable message fields so the old code would throw instead of returning a string at all.

Don't think this was intentional, and many errors have non-writable `message` fields so the old code would throw instead of returning a string at all.
@chenjiahan chenjiahan changed the title Fix error message mutation in toString method. fix: error message mutation in toString method Nov 16, 2025
Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you!

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