1
0
mirror of https://github.com/tc39/test262.git synced 2025-04-08 19:35:28 +02:00

intl: improve coverage for Intl.NumberFormat

Add Intl.NumberFormat.prototype.formatToParts to the test
this-value-not-numberformat.js to check if a TypeError is thrown if the
"this" value for the function call isn't a valid NumberFormat object.
This commit is contained in:
Ujjwal Sharma 2018-09-18 00:56:37 +05:30 committed by Rick Waldron
parent 6b314e86fa
commit db238a1abe

@ -12,6 +12,7 @@ author: Norbert Lindenberg
var functions = {
"format getter": Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format").get,
formatToParts: Intl.NumberFormat.prototype.formatToParts,
resolvedOptions: Intl.NumberFormat.prototype.resolvedOptions
};
var invalidTargets = [undefined, null, true, 0, "NumberFormat", [], {}];