Skip to content

feat(ecmascript): PlainTime.prototype.round#988

Open
0Zeno wants to merge 1 commit intotrynova:mainfrom
jesperkha:temporal/plaintime-prototype-round
Open

feat(ecmascript): PlainTime.prototype.round#988
0Zeno wants to merge 1 commit intotrynova:mainfrom
jesperkha:temporal/plaintime-prototype-round

Conversation

@0Zeno
Copy link
Copy Markdown
Contributor

@0Zeno 0Zeno commented Apr 19, 2026

No description provided.

// 14. Let result be RoundTime(plainTime.[[Time]], roundingIncrement, smallestUnit, roundingMode).
let result = plain_time
.get(agent)
.inner_plain_time(agent)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nitpick: You could get this before all the reborrow work and store it on the stack where it cannot be GC'd and is safe: that'd mean probably no need to scope plain_time.

Copy link
Copy Markdown
Member

@aapoalas aapoalas left a comment

Choose a reason for hiding this comment

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

LGTM!

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