-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
C-bugSomething isn't workingSomething isn't working
Description
Temporal.Instant.from('2020-01-01T00:00:00.1234567890Z');
Temporal.PlainDate.from('2020-01-01T00:00:00.1234567890');
Temporal.PlainYearMonth.from('2020-01-01T00:00:00.1234567890');
Temporal.PlainMonthDay.from('2020-01-01T00:00:00.1234567890');Every statement should raise an error according to the spec, but this crate doesn't.
https://tc39.es/ecma262/multipage/numbers-and-dates.html#prod-TemporalDecimalFraction
Note that PlainTime, ZonedDateTime and PlainDateTime rejects such kind of invalid strings.
Temporal.PlainTime.from('2020-01-01T00:00:00.1234567890');
Temporal.ZonedDateTime.from('2020-01-01T00:00:00.1234567890Z[UTC]');
Temporal.PlainDateTime.from('2020-01-01T00:00:00.1234567890');I confirmed this behavior in both Boa v0.21 (in playground) and Chrome Canary.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugSomething isn't workingSomething isn't working
Type
Projects
Status
No status