// |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally // Copyright (C) 2026 Igalia, S.L. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: sec-temporal.plaintime.from description: Fractional minutes or hours in time string should throw RangeError features: [Temporal] ---*/ const invalidStrings = [ ["05:07.123", "Fractional minutes"], ["12.5", "Fractional hours"], ]; for (const [arg, description] of invalidStrings) { assert.throws( RangeError, () => Temporal.PlainTime.from(arg), `${description} not allowed in time string` ); } reportCompare(0, 0);