Skip to content

Duration rounding reaches unreachable code #1377

@cjtenny

Description

@cjtenny
import { Temporal } from 'proposal-temporal';
let d = Temporal.Duration.from({ minutes: 10, seconds: 52 });
d.round({ smallestUnit: 'minutes' });

leads to

        throw new Error('assert not reached');
              ^
Error: assert not reached
    at Object.BalanceDuration (...)
    at Duration.round (...)

Happens on latest main. Probably shouldn't?

Metadata

Metadata

Assignees

Labels

bugnon-prod-polyfillTHIS POLYFILL IS NOT FOR PRODUCTION USE!

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions