mirror of https://github.com/tc39/test262.git
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:
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", [], {}];
|
||||
|
|
Loading…
Reference in New Issue