mirror of
https://github.com/shinyobjectz/raea.git
synced 2026-12-01 06:53:19 -10:00
QuickJS has no Intl, so toLocaleString or Intl.NumberFormat threw "Intl is not defined" off a Mac. FormatJS's polyfills (MIT) and the CLDR data they carry (Unicode-3.0) are packed in runtime/jsengine/js/intl.pack (2.2 MB, deflate; js/intl build.ts, versions pinned), and js/intl/loader.js runs the core the first time anything reads Intl or calls a toLocale* method, and a locale's data the first time something asks for it, so a script that never formats pays nothing. A small Collator (letters, then accents, then case) backs localeCompare. quickjs_formats_as_javascriptcore_does: fourteen cases give JavaScriptCore's answers, and on a Mac it asks JavaScriptCore too. Apple builds are unchanged.