Closed ashubham closed 5 years ago
When bundling for ES6 modules, the scripts are by default loaded in 'strict mode'. The number formatting in globalize seems to be violating strict mode in these lines:
https://github.com/globalizejs/globalize/blob/master/src/number/format-properties.js#L74
properties[ 2 ] = negativeSuffix[ 2 ] = 1; // minimumIntegerDigits properties[ 3 ] = negativeSuffix[ 3 ] = 0; // minimumFractionDigits properties[ 4 ] = negativeSuffix[ 4 ] = 0; // maximumFractionDigits
It fails with TypeError: Cannot create property '2' on string ''
TypeError: Cannot create property '2' on string ''
When bundling for ES6 modules, the scripts are by default loaded in 'strict mode'. The number formatting in globalize seems to be violating strict mode in these lines:
https://github.com/globalizejs/globalize/blob/master/src/number/format-properties.js#L74
It fails with
TypeError: Cannot create property '2' on string ''