browser.js |
|
0 |
locales-invalid.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks error cases for the locales argument to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
3. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
includes: [testIntl.js]
features: [Intl.RelativeTimeFormat]
--- |
721 |
locales-valid.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks various cases for the locales argument to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
3. Let _requestedLocales_ be ? CanonicalizeLocaleList(_locales_).
features: [Intl.RelativeTimeFormat]
--- |
1562 |
newtarget-undefined.js |
---
esid: sec-intl.RelativeTimeFormat
description: >
Verifies the NewTarget check for Intl.RelativeTimeFormat.
info: |
Intl.RelativeTimeFormat ([ locales [ , options ]])
1. If NewTarget is undefined, throw a TypeError exception.
features: [Intl.RelativeTimeFormat]
--- |
730 |
options-invalid.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks handling of a null options argument to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
5. Else
a. Let options be ? ToObject(options).
features: [Intl.RelativeTimeFormat]
--- |
605 |
options-localeMatcher-invalid.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks handling of invalid value for the localeMatcher option to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
7. Let matcher be ? GetOption(options, "localeMatcher", "string", «"lookup", "best fit"», "best fit").
features: [Intl.RelativeTimeFormat]
--- |
892 |
options-numberingSystem-invalid.js |
---
esid: sec-Intl.RelativeTimeFormat
description: >
Checks error cases for the options argument to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
...
8. If numberingSystem is not undefined, then
a. If numberingSystem does not match the type sequence (from UTS 35 Unicode Locale Identifier, section 3.2), throw a RangeError exception.
features: [Intl.RelativeTimeFormat]
--- |
1300 |
options-numberingSystem-valid.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks valid cases for the options argument to the RelativeTimeFormat constructor.
features: [Intl.RelativeTimeFormat]
--- |
762 |
options-numeric-invalid.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks handling of invalid value for the numeric option to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
16. Let numeric be ? GetOption(options, "numeric", "string", «"always", "auto"», "always").
features: [Intl.RelativeTimeFormat]
--- |
911 |
options-numeric-valid.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks handling of valid values for the numeric option to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
16. Let numeric be ? GetOption(options, "numeric", "string", «"always", "auto"», "always").
17. Set relativeTimeFormat.[[Numeric]] to numeric.
features: [Intl.RelativeTimeFormat]
--- |
943 |
options-order.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks the order of operations on the options argument to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
7. Let matcher be ? GetOption(options, "localeMatcher", "string", «"lookup", "best fit"», "best fit").
14. Let s be ? GetOption(options, "style", "string", «"long", "short", "narrow"», "long").
16. Let numeric be ? GetOption(options, "numeric", "string", «"always", "auto"», "always").
includes: [compareArray.js]
features: [Intl.RelativeTimeFormat]
--- |
1724 |
options-proto.js |
---
esid: sec-Intl.RelativeTimeFormat
description: |
Checks that the RelativeTimeFormat constructor does not cause the
NumberFormat and PluralRules constructors to get properties off
Object.prototype through the options objects it creates.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
20. Let nfOptions be ObjectCreate(null).
25. Let prOptions be ObjectCreate(null).
features: [Intl.RelativeTimeFormat]
--- |
2444 |
options-style-invalid.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks handling of invalid value for the style option to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
14. Let s be ? GetOption(options, "style", "string", «"long", "short", "narrow"», "long").
features: [Intl.RelativeTimeFormat]
--- |
876 |
options-style-valid.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks handling of valid values for the style option to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
14. Let s be ? GetOption(options, "style", "string", «"long", "short", "narrow"», "long").
15. Set relativeTimeFormat.[[Style]] to s.
features: [Intl.RelativeTimeFormat]
--- |
952 |
options-throwing-getters.js |
---
esid: sec-InitializeRelativeTimeFormat
description: Checks the propagation of exceptions from the options for the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat
5. Let matcher be ? GetOption(options, "localeMatcher", "string", «"lookup", "best fit"», "best fit").
...
7. Let numberingSystem be ? GetOption(options, "numberingSystem", "string", undefined, undefined).
...
16. Let s be ? GetOption(options, "style", "string", «"long", "short", "narrow"», "long").
...
18. Let numeric be ? GetOption(options, "numeric", "string", «"always", "auto"», "always").
GetOption ( options, property, type, values, fallback )
1. Let value be ? Get(options, property).
2. If value is not undefined, then
a. Assert: type is "boolean" or "string".
b. If type is "boolean", then
i. Let value be ToBoolean(value).
c. If type is "string", then
i. Let value be ? ToString(value).
d. If values is not undefined, then
i. If values does not contain an element equal to value, throw a RangeError exception.
e. Return value.
3. Else, return fallback.
features: [Intl.RelativeTimeFormat]
includes: [compareArray.js]
--- |
3421 |
options-toobject-prototype.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks handling of non-object option arguments to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
features: [Intl.RelativeTimeFormat]
--- |
1027 |
options-toobject.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks handling of non-object option arguments to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
features: [Intl.RelativeTimeFormat]
--- |
903 |
options-undefined.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks handling of non-object option arguments to the RelativeTimeFormat constructor.
info: |
InitializeRelativeTimeFormat (relativeTimeFormat, locales, options)
features: [Intl.RelativeTimeFormat]
--- |
1142 |
proto-from-ctor-realm.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Default [[Prototype]] value derived from realm of the NewTarget.
info: |
Intl.RelativeTimeFormat ([ locales [ , options ]])
1. If NewTarget is undefined, throw a TypeError exception.
2. Let relativeTimeFormat be ? OrdinaryCreateFromConstructor(NewTarget, "%RelativeTimeFormatPrototype%", « ... »).
3. Return ? InitializeRelativeTimeFormat(relativeTimeFormat, locales, options).
OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ , internalSlotsList ] )
...
2. Let proto be ? GetPrototypeFromConstructor(constructor, intrinsicDefaultProto).
3. Return ObjectCreate(proto, internalSlotsList).
GetPrototypeFromConstructor ( constructor, intrinsicDefaultProto )
...
3. Let proto be ? Get(constructor, 'prototype').
4. If Type(proto) is not Object, then
a. Let realm be ? GetFunctionRealm(constructor).
b. Set proto to realm's intrinsic object named intrinsicDefaultProto.
5. Return proto.
features: [Intl.RelativeTimeFormat, cross-realm, Reflect, Symbol]
--- |
2607 |
shell.js |
|
0 |
subclassing.js |
---
esid: sec-Intl.RelativeTimeFormat
description: Checks that RelativeTimeFormat can be subclassed.
info: |
Intl.RelativeTimeFormat ( [ locales [ , options ] ] )
2. Let relativeTimeFormat be ! OrdinaryCreateFromConstructor(NewTarget, "%RelativeTimeFormatPrototype%", « [[InitializedRelativeTimeFormat]] »).
features: [Intl.RelativeTimeFormat]
--- |
1419 |