Skip to content

Add feature to force float64-representable durations#621

Merged
nekevss merged 1 commit intoboa-dev:mainfrom
Manishearth:f64-representable
Nov 11, 2025
Merged

Add feature to force float64-representable durations#621
nekevss merged 1 commit intoboa-dev:mainfrom
Manishearth:f64-representable

Conversation

@Manishearth
Copy link
Copy Markdown
Contributor

Fixes #613

#[test]
#[cfg_attr(not(feature = "float64_representable_durations"), should_panic)]
fn duration_float64_representable() {
// built-ins/Temporal/Duration/prototype/add/float64-representable-integer
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I only added one of the tests, but we could add more.

Copy link
Copy Markdown
Member

@nekevss nekevss left a comment

Choose a reason for hiding this comment

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

I guess this is the more accurate representation off the spec too.

Looks good to me.

@nekevss nekevss merged commit a8405af into boa-dev:main Nov 11, 2025
8 checks passed
@Manishearth Manishearth deleted the f64-representable branch November 11, 2025 16:59
philwo pushed a commit to philwo/chromium that referenced this pull request Nov 11, 2025
Uplifts boa-dev/temporal#621

Bug: 401065166
Change-Id: Iad750a4e3c93dd65c7b2b10ab7e3789f5cc877de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7142574
Commit-Queue: Manish Goregaokar <manishearth@google.com>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1543294}
hubot pushed a commit to v8/v8 that referenced this pull request Nov 11, 2025
Pulls in boa-dev/temporal#621, fixing some tests

Bug: 401065166
Change-Id: I477a9c2d234dfa7ddbf8946d6fdd17a26a6a6964
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/7143539
Reviewed-by: Rezvan Mahdavi Hezaveh <rezvan@chromium.org>
Auto-Submit: Manish Goregaokar <manishearth@google.com>
Commit-Queue: Manish Goregaokar <manishearth@google.com>
Commit-Queue: Rezvan Mahdavi Hezaveh <rezvan@chromium.org>
Cr-Commit-Position: refs/heads/main@{#103653}
mohd-akram pushed a commit to gsource-mirror/chromium-src-third_party-rust that referenced this pull request Jan 9, 2026
Uplifts boa-dev/temporal#621

Bug: 401065166
Change-Id: Iad750a4e3c93dd65c7b2b10ab7e3789f5cc877de
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7142574
Commit-Queue: Manish Goregaokar <manishearth@google.com>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1543294}
NOKEYCHECK=True
GitOrigin-RevId: 9780fdf90293d02d5bb549794ddb03b8dc2d4122
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.

Duration components get rounded to float64-representable integers differently than in Temporal spec

2 participants