mirror of
https://github.com/tc39/test262.git
synced 2025-09-21 17:18:29 +02:00
Edits Temporal tests to account for changes in https://github.com/tc39/proposal-temporal/pull/2574. This PR stops coercing non-string primitive inputs to strings in Temporal methods, to avoid cases where numbers are coerced to syntactically valid but often unexpected string results.
12 lines
385 B
JavaScript
12 lines
385 B
JavaScript
// 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
|
|
description: TypeError thrown when constructor invoked with no argument
|
|
features: [Temporal]
|
|
---*/
|
|
|
|
assert.throws(TypeError, () => new Temporal.TimeZone());
|
|
assert.throws(TypeError, () => new Temporal.TimeZone(undefined));
|