Skip to content

Conversation

@Manishearth
Copy link
Contributor

@Manishearth Manishearth commented Aug 11, 2025

Aside from datagen/sys code, this stops temporal_rs from panicking when unexpected things occur. In general a JS engine should not panic; it should throw an error or have GIGO behavior.

ICU4X follows a similar policy.

It would be nice to make sure none of the arithmetic can panic as well; though at least in release builds it'll wrap or do other GIGO, which seems fine.

@Manishearth Manishearth requested a review from nekevss August 11, 2025 09:59
@Manishearth Manishearth merged commit 8bfa50c into boa-dev:main Aug 11, 2025
8 checks passed
@Manishearth Manishearth deleted the no-panics branch August 11, 2025 15:51
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