Closed indremak closed 2 years ago
This will not work:
There is a typo in your code. It should be Intl
, not Intln
I intentionally introduced the typo to make the error happen and test you approach. When the function tries to reference Intl
that is not present at runtime, we want to handle it and return 'day', but ?.
would still lead to the exception.
added checks for Intl
and DateTimeFormat
types, could you review?
Thanks @indremak for the PR, and happy october hacking!
Fix for #673 Fix crash: ReferenceError: Intl is not defined