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
1 changed files with 1 additions and 0 deletions

View File

@ -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", [], {}];