Install the Temporal API onto globalThis (polyfill-style side effect).
If the runtime already exposes a native globalThis.Temporal, nothing is
mutated and the native API is returned. Otherwise temporal-polyfill is
loaded lazily and assigned to globalThis.Temporal and
Date.prototype.toTemporalInstant.
Prefer loadTemporal when you do not need global mutation — it keeps
the default path a pure ponyfill.
Install the Temporal API onto
globalThis(polyfill-style side effect).If the runtime already exposes a native
globalThis.Temporal, nothing is mutated and the native API is returned. Otherwisetemporal-polyfillis loaded lazily and assigned toglobalThis.TemporalandDate.prototype.toTemporalInstant.Prefer loadTemporal when you do not need global mutation — it keeps the default path a pure ponyfill.