Debian Codegraph @

js/src/tests/test262/intl402/Temporal/ZonedDateTime/compare/disregards-calendar-if-exact-times-equal.js

raw
1 // |reftest| shell-option(--enable-temporal) skip-if(!this.hasOwnProperty('Temporal')||!xulRuntime.shell) -- Temporal is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2024 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-temporal.zoneddatetime.compare
7 description: >
8 Disregards the calendar if the exact times of the arguments are equal
9 features: [Temporal]
10 ---*/
11
12 const arg1 = new Temporal.ZonedDateTime(1572342398_271_986_102n, "-07:00", "iso8601");
13 const arg2 = new Temporal.ZonedDateTime(1572342398_271_986_102n, "-07:00", "japanese");
14 assert.sameValue(Temporal.ZonedDateTime.compare(arg1, arg2), 0);
15
16 reportCompare(0, 0);