blob: c892b73361f359f965c055d5b655161d9e86a3fc [file] [log] [blame]
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-temporal.plaintime.prototype.round
description: RangeError thrown when smallestUnit option is missing
features: [Temporal]
---*/
const plainTime = new Temporal.PlainTime(12, 34, 56, 123, 987, 500);
assert.throws(TypeError, () => plainTime.round());
assert.throws(RangeError, () => plainTime.round({}));
assert.throws(RangeError, () => plainTime.round({ roundingIncrement: 1, roundingMode: "ceil" }));