Skip to content

Conversation

@Manishearth
Copy link
Contributor

@Manishearth Manishearth commented Nov 4, 2025

This updates the implementation for the tc39/proposal-temporal#3141 fix up for merge in tc39/proposal-temporal#3147.

Ported from #530

The reverse_wallclock test still fails

@Manishearth
Copy link
Contributor Author

Test failure

---- builtins::core::zoned_date_time::tests::test_same_date_reverse_wallclock stdout ----
Testing compiled_data:

thread 'builtins::core::zoned_date_time::tests::test_same_date_reverse_wallclock' panicked at src/builtins/core/zoned_date_time/tests.rs:1164:76:
called `Result::unwrap()` on an `Err` value: TemporalError { kind: Range, msg: String("DateDuration and TimeDuration must agree if both are not zero.") }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I think we have an additional bug somewhere.

@nekevss
Copy link
Member

nekevss commented Nov 4, 2025

We may have just run into a known bug ... is this related to tc39/proposal-temporal#3159? Quite possible that it is us though.

let end = self.time_zone.get_iso_datetime_for(other, provider)?;
// 4. If ns2 - ns1 < 0, let sign be -1; else let sign be 1.
// 4. If CompareISODate(startDateTime.[[ISODate]], endDateTime.[[ISODate]]) = 0, then
if start.date == end.date {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Manishearth
Copy link
Contributor Author

@nekevss Nope. Turns out your original PR missed a step; probably because it was written based off of a draft spec change that itself got updated a dozen times.

@Manishearth Manishearth requested a review from nekevss November 4, 2025 20:05
@Manishearth Manishearth merged commit 71b78df into boa-dev:main Nov 4, 2025
8 checks passed
@Manishearth Manishearth deleted the zdt-sinceuntil branch November 4, 2025 20:22
aarongable pushed a commit to chromium/chromium that referenced this pull request Nov 4, 2025
Uplifts boa-dev/temporal#618,
boa-dev/temporal#619 to fix the remaining
test262 failures.

Bug: 401065166
Change-Id: Ie94eb956b4a0327d9e91c7ca43774cc4ecf3bf18
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7120501
Commit-Queue: Manish Goregaokar <[email protected]>
Reviewed-by: Łukasz Anforowicz <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1540332}
jmajnert pushed a commit to jmajnert/chromium that referenced this pull request Nov 6, 2025
Uplifts boa-dev/temporal#618,
boa-dev/temporal#619 to fix the remaining
test262 failures.

Bug: 401065166
Change-Id: Ie94eb956b4a0327d9e91c7ca43774cc4ecf3bf18
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7120501
Commit-Queue: Manish Goregaokar <[email protected]>
Reviewed-by: Łukasz Anforowicz <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1540332}
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