Bug Description
Using the Intl.DateTimeFormat constructor with default (undefined) fails even though the parameter is optional
const formatter = new Intl.DateTimeFormat(undefined, options);
Hermes git revision (if applicable):
React Native version: 0.73.7
OS: Windows 11
Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64):
Steps To Reproduce
- Create RNW application follow these directions
- Modify Hermes version to ensure Hermes Internationalization is enabled (0.1.27+)
- Try using
formatter = new Intl.DateTimeFormat(undefined, options); to format any date and display the text
- Observe crash
code example:
const formatter = new Intl.DateTimeFormat(undefined, options);
The Expected Behavior
Formatted date, no crash.