diff --git a/polyfill/lib/duration.mjs b/polyfill/lib/duration.mjs index dfd41b7160..0bb45af91c 100644 --- a/polyfill/lib/duration.mjs +++ b/polyfill/lib/duration.mjs @@ -73,8 +73,10 @@ export class Duration { SetSlot(this, NANOSECONDS, nanoseconds); if (typeof __debug__ !== 'undefined' && __debug__) { + const { precision, unit, increment } = ES.ToDurationSecondsStringPrecision({}); + const s = ES.TemporalDurationToString(this, precision, { unit, increment, roundingMode: 'trunc' }); Object.defineProperty(this, '_repr_', { - value: `${this[Symbol.toStringTag]} <${ES.TemporalDurationToString(this)}>`, + value: `${this[Symbol.toStringTag]} <${s}>`, writable: false, enumerable: false, configurable: false