mirror of
https://github.com/tc39/test262.git
synced 2025-11-17 04:09:50 +01: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
416 B
JavaScript
12 lines
416 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.now.plaindatetime
|
|
description: Throws when the calendar argument is undefined
|
|
features: [Temporal]
|
|
---*/
|
|
|
|
assert.throws(TypeError, () => Temporal.Now.plainDateTime(), "implicit");
|
|
assert.throws(TypeError, () => Temporal.Now.plainDateTime(undefined), "implicit");
|