[Temporal] Fix order of operations in Temporal.PlainTime.from#56210
Merged
webkit-commit-queue merged 1 commit intoWebKit:mainfrom Jan 10, 2026
Merged
Conversation
3eec428 to
da521c0
Compare
Collaborator
|
EWS run on previous version of this PR (hash da521c0) Details |
da521c0 to
588507b
Compare
Collaborator
|
EWS run on previous version of this PR (hash 588507b) Details |
Constellation
requested changes
Jan 8, 2026
| RELEASE_AND_RETURN(scope, JSValue::encode(TemporalPlainTime::create(vm, globalObject->plainTimeStructure(), jsCast<TemporalPlainTime*>(itemValue)->plainTime()))); | ||
| if (itemValue.inherits<TemporalPlainTime>()) { | ||
| // Validate overflow -- see step 2(a)(ii) of ToTemporalTime | ||
| toTemporalOverflow(globalObject, options); |
Member
There was a problem hiding this comment.
options can be nullptr, right?
Contributor
Author
There was a problem hiding this comment.
Yes -- added a null check.
588507b to
5f0488d
Compare
Collaborator
|
EWS run on previous version of this PR (hash 5f0488d) Details |
Constellation
approved these changes
Jan 8, 2026
Collaborator
|
Commit message contains (OOPS!), blocking PR #56210. Details: Build #29044 |
5f0488d to
41c604b
Compare
Collaborator
|
EWS run on current version of this PR (hash 41c604b) Details |
https://bugs.webkit.org/show_bug.cgi?id=305061 Reviewed by Yusuke Suzuki. According to the spec, the overflow option should be read after the fields when calling `from` on a property bag. This change improves the result for the test test/built-ins/Temporal/PlainTime/from/order-of-operations.js (it now fails because ZonedDateTime is not implemented). * JSTests/test262/expectations.yaml: * Source/JavaScriptCore/runtime/TemporalObject.cpp: (JSC::doubleNumberOption): * Source/JavaScriptCore/runtime/TemporalPlainDatePrototype.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): * Source/JavaScriptCore/runtime/TemporalPlainDateTimePrototype.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): * Source/JavaScriptCore/runtime/TemporalPlainTime.cpp: (JSC::TemporalPlainTime::from): * Source/JavaScriptCore/runtime/TemporalPlainTime.h: * Source/JavaScriptCore/runtime/TemporalPlainTimeConstructor.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): * Source/JavaScriptCore/runtime/TemporalPlainTimePrototype.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): Canonical link: https://commits.webkit.org/305405@main
41c604b to
66872df
Compare
Collaborator
|
Committed 305405@main (66872df): https://commits.webkit.org/305405@main Reviewed commits have been landed. Closing PR #56210 and removing active labels. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
66872df
41c604b
🛠 playstation