Skip to content

Fix ZonedDateTime::with bug when empty fields is provided#650

Merged
Manishearth merged 1 commit intomainfrom
fix-zdt-with-bug
Dec 12, 2025
Merged

Fix ZonedDateTime::with bug when empty fields is provided#650
Manishearth merged 1 commit intomainfrom
fix-zdt-with-bug

Conversation

@nekevss
Copy link
Copy Markdown
Member

@nekevss nekevss commented Dec 12, 2025

This PR rejects empty fields being provided to ZonedDateTime::with_with_provider.

It also adds an ErrorMessage value for empty fields.

@nekevss nekevss requested a review from Manishearth December 12, 2025 05:00
@nekevss nekevss added the C-bug Something isn't working label Dec 12, 2025
@Manishearth
Copy link
Copy Markdown
Contributor

This bug is not present in V8 since V8 handles this check in C++.

@Manishearth Manishearth merged commit ef7cd5e into main Dec 12, 2025
8 checks passed
@Manishearth Manishearth deleted the fix-zdt-with-bug branch December 12, 2025 18:33
github-merge-queue Bot pushed a commit to boa-dev/boa that referenced this pull request Dec 13, 2025
<!---
Thank you for contributing to Boa! Please fill out the template below,
and remove or add any
information as you feel necessary.
--->

This Pull Request fixes two failing tests for ZonedDateTime that flagged
with some of the new test262 tests.

The 3rd and final broken test is fixed by boa-dev/temporal#650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants