mirror of
https://github.com/tc39/test262.git
synced 2025-07-31 01:44:54 +02:00
18 lines
421 B
JavaScript
18 lines
421 B
JavaScript
// 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.zoneddatetime.from
|
|
description: from() throws if a required property is undefined.
|
|
features: [Temporal]
|
|
---*/
|
|
|
|
assert.throws(TypeError, () => Temporal.ZonedDateTime.from({
|
|
year: 1976,
|
|
month: undefined,
|
|
monthCode: undefined,
|
|
day: 18,
|
|
timeZone: "+01:00"
|
|
}));
|
|
|