> d = Temporal.Duration.from({ years: 1, hours: 1 });
> d.round({ smallestUnit: 'years', relativeTo: '2020-02-29', roundingMode: 'floor' });
// Current: duration of 0 length (and assertion failure in Firefox debug builds)
// Proposed: duration of 1 year
There are two almost completely conformant implementations, one still flagged. We outlined a path to stage 4 for the proposal and listed the blockers.
...
npx test262-harness --hostType=sm --hostPath=$HOME/.esvu/bin/sm -f Temporal "test/**/*.js" npx test262-harness --hostType=v8 --hostPath=$HOME/.esvu/bin/v8 -f Temporal --hostArgs=--harmony-temporal -- "test/**/*.js" npx test262-harness --hostType=libjs --hostPath=$HOME/.esvu/bin/ladybird-js -f Temporal --hostArgs=--use-test262-global -- "test/**/*.js" npx test262-harness --hostType=boa --hostPath=$HOME/.esvu/bin/boa-nightly -f Temporal -- "test/**/*.js" # requires https://github.com/tc39/eshost/pull/147 and https://github.com/devsnek/esvu/pull/66 npx test262-harness --hostType=hermes --hostPath=$HOME/.esvu/bin/kiesel-nightly -f Temporal -- "test/**/*.js" npx test262-harness --hostType=graaljs --hostPath=$HOME/.esvu/bin/graaljs -f Temporal --hostArgs='--experimental-options --js.temporal' -- "test/**/*.js" # note: have to kill process on test/staging/sm/Temporal/PlainMonthDay/from-chinese-leap-month-common.js (both strict and sloppy mode) npx test262-harness --hostType=jsc --hostPath=$HOME/.esvu/bin/jsc -f Temporal --hostArgs=--useTemporal=1 -- "test/**/*.js" npx test262-harness --hostType=node --hostPath=$HOME/.local/bin/deno -f Temporal --hostArgs='run --unstable-temporal' -- "test/**/*.js"
"interesting" i.e. chosen to be somewhat likely to find bugs?
There were cases with some inputs where the assertion was hit but the method still produced the correct answer when assertions were switched off in release builds. But there were also cases where it didn't.