2021-09-29 21:48:22 +02:00
|
|
|
// Copyright (C) 2021 Igalia, S.L. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
esid: sec-temporal.timezone
|
2023-06-10 19:17:39 +02:00
|
|
|
description: TypeError thrown when constructor invoked with no argument
|
2021-09-29 21:48:22 +02:00
|
|
|
features: [Temporal]
|
|
|
|
---*/
|
|
|
|
|
2023-06-10 19:17:39 +02:00
|
|
|
assert.throws(TypeError, () => new Temporal.TimeZone());
|
|
|
|
assert.throws(TypeError, () => new Temporal.TimeZone(undefined));
|