Files
cappuccino/Foundation
David Richardson 23dff002a4 Fix CPTimeZone initialization and bridge prototype exceptions
The object returned by the host engine's Intl.supportedValuesOf("timeZone") lacks standard JavaScript Array prototype methods (e.g., slice, indexOf) when crossing the runtime bridge.

This previously caused exceptions in testKnownTimeZoneNamesUsesIntlWhenAvailable.

This commit resolves the exceptions by utilizing primitive JavaScript property access and zero-indexed iteration to construct a local array. This architecture safely isolates the class from bridge prototype limitations and CPArray dependencies.

Additionally, it explicitly appends the legacy aliases "GMT" and "UTC" during the manual array construction. Engines adhering to canonical IANA identifiers omit these aliases, which caused localTimeZone initialization to abort in UTC-bound CI environments.

Guaranteeing their presence resolves the null evaluation failure in testSecondsFromGMTForDate.
2026-08-28 19:46:46 -06:00
..
2026-07-21 15:15:53 -06:00
2026-07-21 15:15:53 -06:00
2015-04-22 11:22:44 -07:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2021-08-19 10:56:13 +02:00
2026-06-16 20:20:25 +02:00
2026-03-24 21:34:39 +01:00
2010-12-26 01:34:37 +02:00
2026-08-04 18:09:27 -06:00