// 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.plaindatetime description: > A Temporal.Calendar instance passed to new PlainDateTime() does not have its 'calendar' property observably checked features: [Temporal] ---*/ const arg = new Temporal.Calendar("iso8601"); Object.defineProperty(arg, "calendar", { get() { throw new Test262Error("calendar.calendar should not be accessed"); }, }); new Temporal.PlainDateTime(2000, 5, 2, 15, 23, 30, 987, 654, 321, arg); new Temporal.PlainDateTime(2000, 5, 2, 15, 23, 30, 987, 654, 321, { calendar: arg });