···11+// Copyright (C) 2025 Igalia, S.L. All rights reserved.
22+// This code is governed by the BSD license found in the LICENSE file.
33+44+/*---
55+esid: sec-temporal.instant.prototype.tozoneddatetimeiso
66+description: >
77+ Calling GetPossibleEpochNanoseconds (from ToTemporalZonedDateTime > InterpretISODateTimeOffset)
88+ causes no observable array iteration.
99+features: [Temporal]
1010+---*/
1111+1212+const arrayPrototypeSymbolIteratorOriginal = Array.prototype[Symbol.iterator];
1313+Array.prototype[Symbol.iterator] = function arrayIterator() {
1414+ throw new Test262Error("Array should not be iterated");
1515+}
1616+1717+let inst = new Temporal.Instant(0n);
1818+let zdt = inst.toZonedDateTimeISO("UTC");
1919+2020+Array.prototype[Symbol.iterator] = arrayPrototypeSymbolIteratorOriginal;
···11+// Copyright (C) 2025 Igalia, S.L. All rights reserved.
22+// This code is governed by the BSD license found in the LICENSE file.
33+44+/*---
55+esid: sec-temporal.plaindate.prototype.tozoneddatetime
66+description: >
77+ Calling GetPossibleEpochNanoseconds (from ToTemporalZonedDateTime > InterpretISODateTimeOffset)
88+ causes no observable array iteration.
99+features: [Temporal]
1010+---*/
1111+1212+const arrayPrototypeSymbolIteratorOriginal = Array.prototype[Symbol.iterator];
1313+Array.prototype[Symbol.iterator] = function arrayIterator() {
1414+ throw new Test262Error("Array should not be iterated");
1515+}
1616+1717+let pd = new Temporal.PlainDate(2000, 1, 1);
1818+let zdt = pd.toZonedDateTime("UTC");
1919+2020+Array.prototype[Symbol.iterator] = arrayPrototypeSymbolIteratorOriginal;
···11+// Copyright (C) 2025 Igalia, S.L. All rights reserved.
22+// This code is governed by the BSD license found in the LICENSE file.
33+44+/*---
55+esid: sec-temporal.plaindatetime.prototype.tozoneddatetime
66+description: >
77+ Calling GetPossibleEpochNanoseconds (from ToTemporalZonedDateTime > InterpretISODateTimeOffset)
88+ causes no observable array iteration.
99+features: [Temporal]
1010+---*/
1111+1212+const arrayPrototypeSymbolIteratorOriginal = Array.prototype[Symbol.iterator];
1313+Array.prototype[Symbol.iterator] = function arrayIterator() {
1414+ throw new Test262Error("Array should not be iterated");
1515+}
1616+1717+let pdt = new Temporal.PlainDateTime(2000, 1, 1, 12, 0, 0, 0);
1818+let zdt = pdt.toZonedDateTime("UTC");
1919+2020+Array.prototype[Symbol.iterator] = arrayPrototypeSymbolIteratorOriginal;