Microsoft Edge Chakra InitializeNumberFormat / InitializeDateTimeFormat Type Confusion
Posted by deepcore on August 18, 2018 – 4:59 am
The InitializeNumberFormat function in Intl.js is used to initialize an Intl.NumberFormat object, and InitializeDateTimeFormat is used for an Intl.DateTimeFormat object. There are two versions of each initializer. One is for WinGlob and the other is for ICU. The problem is that the versions for ICU don’t check whether the given object has been initialized. This allows to initialize the same object multiple times which can lead to type confusion.
Post a reply
You must be logged in to post a comment.