fde2c55652
* Add bigint support for formatToParts * Add tests for Intl.NumberFormat.formatToParts * Cleanup test * Fix EOL symbols * Update baseline test
14 lines
487 B
TypeScript
14 lines
487 B
TypeScript
//// [formatToPartsBigInt.ts]
|
|
// Intl.NumberFormat.formatToParts should support bigInt
|
|
|
|
// Test Intl methods with new parameter type
|
|
new Intl.NumberFormat("fr").formatToParts(3000n);
|
|
new Intl.NumberFormat("fr").formatToParts(BigInt(123));
|
|
|
|
|
|
//// [formatToPartsBigInt.js]
|
|
// Intl.NumberFormat.formatToParts should support bigInt
|
|
// Test Intl methods with new parameter type
|
|
new Intl.NumberFormat("fr").formatToParts(3000n);
|
|
new Intl.NumberFormat("fr").formatToParts(BigInt(123));
|