| builtin.js |
---
es5id: 11.1_L15
description: >
Tests that Intl.NumberFormat meets the requirements for built-in
objects defined by the introduction of chapter 17 of the
ECMAScript Language Specification.
author: Norbert Lindenberg
--- |
747 |
- |
| currency-code-invalid.js |
---
es5id: 6.3.1_b
description: Tests that invalid currency codes are not accepted.
author: Norbert Lindenberg
--- |
698 |
- |
| currency-code-well-formed.js |
---
es5id: 6.3.1_a
description: Tests that well-formed currency codes are accepted.
author: Norbert Lindenberg
--- |
719 |
- |
| currency-digits.js |
---
es5id: 11.1.1_20_c
description: >
Tests that the number of fractional digits is determined correctly
for currencies.
author: Norbert Lindenberg
--- |
3000 |
- |
| default-minimum-singificant-digits.js |
---
description: Tests that the default value of minimumSignificantDigits is 1.
esid: sec-setnfdigitoptions
--- |
1058 |
- |
| default-options-object-prototype.js |
---
esid: sec-initializenumberformat
description: >
Monkey-patching Object.prototype does not change the default
options for NumberFormat as a null prototype is used.
info: |
InitializeNumberFormat ( numberFormat, locales, options )
1. If _options_ is *undefined*, then
1. Let _options_ be ObjectCreate(*null*).
--- |
785 |
- |
| dft-currency-mnfd-range-check-mxfd.js |
---
esid: sec-setnfdigitoptions
description: >
When a currency is used in Intl.NumberFormat and minimumFractionDigits is
not provided, maximumFractionDigits should be range-checked against it.
--- |
678 |
- |
| fraction-digit-options-read-once.js |
---
esid: sec-setnfdigitoptions
description: >
The maximum and minimum fraction digits properties should be read from
the options bag exactly once from the NumberFormat constructor.
info: Regression test for https://bugs.chromium.org/p/v8/issues/detail?id=6015
--- |
768 |
- |
| ignore-invalid-unicode-ext-values.js |
---
es5id: 11.2.3_b
description: >
Tests that Intl.NumberFormat does not accept Unicode locale
extension keys and values that are not allowed.
author: Norbert Lindenberg
--- |
1684 |
- |
| instance-class.js |
---
es5id: 11.4_a
description: >
Tests that Intl.NumberFormat instances have the specified
properties.
author: Norbert Lindenberg
--- |
521 |
- |
| instance-proto-and-extensible.js |
---
es5id: 11.1.3
description: >
Tests that objects constructed by Intl.NumberFormat have the
specified internal properties.
author: Norbert Lindenberg
--- |
640 |
- |
| legacy-regexp-statics-not-modified.js |
---
es5id: 11.1.1_a
description: >
Tests that constructing a NumberFormat doesn't create or modify
unwanted properties on the RegExp constructor.
author: Norbert Lindenberg
includes: [testIntl.js]
--- |
571 |
- |
| length.js |
---
esid: sec-intl.numberformat
description: >
Intl.NumberFormat.length is 0.
info: |
Intl.NumberFormat ( [ locales [ , options ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in function object, including constructors, has a length
property whose value is an integer. Unless otherwise specified, this
value is equal to the largest number of named arguments shown in the
subclause headings for the function description. Optional parameters
(which are indicated with brackets: [ ]) or rest parameters (which
are shown using the form «...name») are not included in the default
argument count.
Unless otherwise specified, the length property of a built-in function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
1187 |
- |
| name.js |
---
esid: sec-Intl.NumberFormat
description: >
Intl.NumberFormat.name is "NumberFormat".
info: |
11.2.1 Intl.NumberFormat ([ locales [ , options ]])
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
923 |
- |
| prop-desc.js |
---
esid: sec-intl.numberformat-intro
description: >
"NumberFormat" property of Intl.
info: |
Intl.NumberFormat (...)
7 Requirements for Standard Built-in ECMAScript Objects
Unless specified otherwise in this document, the objects, functions, and constructors
described in this standard are subject to the generic requirements and restrictions
specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
Specification, 9th edition, clause 17, or successor.
17 ECMAScript Standard Built-in Objects:
Every other data property described in clauses 18 through 26 and in Annex B.2 has the
attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
unless otherwise specified.
includes: [propertyHelper.js]
--- |
1050 |
- |
| prototype |
|
|
- |
| significant-digits-options-get-sequence.js |
---
es5id: 11.1.1_32
description: >
Tests that the options minimumSignificantDigits and
maximumSignificantDigits are read in the right sequence.
author: Norbert Lindenberg
--- |
1462 |
- |
| subclassing.js |
---
es5id: 11.1.2
description: Tests that Intl.NumberFormat can be subclassed.
author: Norbert Lindenberg
includes: [compareArray.js]
--- |
987 |
- |
| supportedLocalesOf |
|
|
- |
| taint-Object-prototype.js |
---
es5id: 11.1.1_6
description: >
Tests that the behavior of a Record is not affected by
adversarial changes to Object.prototype.
author: Norbert Lindenberg
includes: [testIntl.js]
--- |
584 |
- |
| test-option-currency.js |
---
es5id: 11.1.1_17
description: Tests that the option currency is processed correctly.
author: Norbert Lindenberg
--- |
2752 |
- |
| test-option-currencyDisplay.js |
---
es5id: 11.1.1_21
description: Tests that the option currencyDisplay is processed correctly.
author: Norbert Lindenberg
includes: [testIntl.js]
--- |
565 |
- |
| test-option-localeMatcher.js |
---
es5id: 11.1.1_7
description: Tests that the option localeMatcher is processed correctly.
author: Norbert Lindenberg
includes: [testIntl.js]
--- |
397 |
- |
| test-option-style.js |
---
es5id: 11.1.1_15
description: Tests that the option style is processed correctly.
author: Norbert Lindenberg
includes: [testIntl.js]
--- |
425 |
- |
| test-option-useGrouping.js |
---
es5id: 11.1.1_34
description: Tests that the option useGrouping is processed correctly.
author: Norbert Lindenberg
includes: [testIntl.js]
--- |
358 |
- |
| this-value-ignored.js |
---
es5id: 11.1.1_1
description: >
Tests that the this-value is ignored in NumberFormat, if the this-value
isn't a NumberFormat instance.
author: Norbert Lindenberg
includes: [testIntl.js]
--- |
1185 |
- |
| throws-for-currency-style-without-currency-option.js |
---
es5id: 11.1.1_19
description: >
Tests that the currency style can not be used without a specified
currency.
author: Norbert Lindenberg
--- |
791 |
- |