mirror of
https://github.com/tc39/test262.git
synced 2025-07-03 12:14:37 +02:00
Test PlainDate.from with trailing junk in string argument.
This commit is contained in:
parent
66f4071495
commit
6ee33f1c86
@ -0,0 +1,11 @@
|
|||||||
|
// 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.plaindate.from
|
||||||
|
description: RangeError thrown if a string with trailing junk is used as a PlainDate
|
||||||
|
features: [Temporal, arrow-function]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
assert.throws(RangeError, () => Temporal.PlainDate.from("1976-11-18junk"),
|
||||||
|
"String with trailing junk should not be valid as a PlainDate");
|
Loading…
x
Reference in New Issue
Block a user