boa-dev / temporal

A Rust implementation of ECMAScript's Temporal API
Apache License 2.0
26 stars 4 forks source link

Update `Duration` types to use a `FiniteF64` instead of `f64` primitive. #86

Closed nekevss closed 4 months ago

nekevss commented 4 months ago

This PR updates Duration types to have FiniteF64 fields instead of just a f64.

I still have to re-implement a PartialDurationRecords struct but thought I'd post this as a draft in the meantime for feedback/thoughts.

Also, FiniteF64 probably shouldn't live in utils, but I wasn't sure exactly where to move it... maybe a primitives mod?