Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 2.98 KB

File metadata and controls

40 lines (27 loc) · 2.98 KB

Support for legacy browsers

The polyfill works in browsers after September 2020 by default (e.g. Safari 14).

If you want to support older browsers, you have to transpile temporal-polyfill-lite itself and inject polyfills for APIs used by it.

features after ES2015 used by this polyfill

BigInt

The polyfill doesn't rely on BigInt internally, so it works fine even in browsers without support for BigInt, unless you explicitly use APIs accepting or returning BigInt (such as epochNanoseconds getters).

syntax

runtime

If you want to handle time zones:

If you want to use islamic-umalqura, persian, chinese, or dangi calendars:

  • calendar option in Intl.DateTimeFormat constructor: baseline 2021