blank-duration.js (568B)
1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally 2 // Copyright (C) 2025 Igalia, S.L. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 5 /*--- 6 esid: sec-temporal.duration.from 7 description: Behaviour with blank duration 8 features: [Temporal] 9 includes: [temporalHelpers.js] 10 ---*/ 11 12 const blank = new Temporal.Duration(); 13 const result = Temporal.Duration.from(blank); 14 TemporalHelpers.assertDuration(result, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "result is also blank"); 15 16 reportCompare(0, 0);