Name Description Size Coverage
browser.js 0 -
ctor-custom-get-prototype-poison-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt from Get Prototype from a custom NewTarget info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ , internalSlotsList ] ) ... 2. Let proto be ? GetPrototypeFromConstructor(constructor, intrinsicDefaultProto). ... 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.DisplayNames, Reflect, Proxy] --- 1386 -
ctor-custom-prototype.js --- esid: sec-Intl.DisplayNames description: > Custom Prototype of the returned object based on the NewTarget info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ , internalSlotsList ] ) ... 2. Let proto be ? GetPrototypeFromConstructor(constructor, intrinsicDefaultProto). ... 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.DisplayNames, Reflect] --- 1514 -
ctor-default-prototype.js --- esid: sec-Intl.DisplayNames description: > Prototype of the returned object is DisplayNames.prototype info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... 27. Return displayNames. features: [Intl.DisplayNames] --- 957 -
instance-extensible.js --- esid: sec-Intl.DisplayNames description: > Instance is extensible info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ , internalSlotsList ] ) ... 2. Let proto be ? GetPrototypeFromConstructor(constructor, intrinsicDefaultProto). 3. Return ObjectCreate(proto, internalSlotsList). ObjectCreate ( proto [ , internalSlotsList ] ) ... 2. Let obj be a newly created object with an internal slot for each name in internalSlotsList. 3. Set obj's essential internal methods to the default ordinary object definitions specified in 9.1. 4. Set obj.[[Prototype]] to proto. 5. Set obj.[[Extensible]] to true. 6. Return obj. features: [Intl.DisplayNames] --- 1441 -
length.js --- esid: sec-Intl.DisplayNames description: > Intl.DisplayNames.length is 2. info: | 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] features: [Intl.DisplayNames] --- 1090 -
locales-invalid-throws.js --- esid: sec-Intl.DisplayNames description: > Throws TypeError if locales is not undefined, a string, or an array-like object. info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). 3. Let requestedLocales be ? CanonicalizeLocaleList(locales). ... CanonicalizeLocaleList ( locales ) 1. If locales is undefined, then a. Return a new empty List. 2. Let seen be a new empty List. 3. If Type(locales) is String, then a. Let O be CreateArrayFromList(« locales »). 4. Else, a. Let O be ? ToObject(locales). 5. Let len be ? ToLength(? Get(O, "length")). features: [Intl.DisplayNames] --- 1102 -
locales-length-poison-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from Get Locales length info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). 3. Let requestedLocales be ? CanonicalizeLocaleList(locales). ... CanonicalizeLocaleList ( locales ) 1. If locales is undefined, then a. Return a new empty List. 2. Let seen be a new empty List. 3. If Type(locales) is String, then a. Let O be CreateArrayFromList(« locales »). 4. Else, a. Let O be ? ToObject(locales). 5. Let len be ? ToLength(? Get(O, "length")). features: [Intl.DisplayNames] --- 1179 -
locales-length-tolength-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from Locales invalid length info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). 3. Let requestedLocales be ? CanonicalizeLocaleList(locales). ... CanonicalizeLocaleList ( locales ) 1. If locales is undefined, then a. Return a new empty List. 2. Let seen be a new empty List. 3. If Type(locales) is String, then a. Let O be CreateArrayFromList(« locales »). 4. Else, a. Let O be ? ToObject(locales). 5. Let len be ? ToLength(? Get(O, "length")). ToLength ( argument ) 1. Let len be ? ToInteger(argument). ... features: [Intl.DisplayNames, Symbol, BigInt] --- 1896 -
locales-symbol-length.js --- esid: sec-Intl.DisplayNames description: > CanonicalizeLocaleList tries to fetch length from Object. info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). 3. Let requestedLocales be ? CanonicalizeLocaleList(locales). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... CanonicalizeLocaleList ( locales ) 1. If locales is undefined, then a. Return a new empty List. 2. Let seen be a new empty List. 3. If Type(locales) is String, then a. Let O be CreateArrayFromList(« locales »). 4. Else, a. Let O be ? ToObject(locales). 5. Let len be ? ToLength(? Get(O, "length")). features: [Intl.DisplayNames, Symbol] locale: [en] includes: [compareArray.js] --- 1995 -
name.js --- esid: sec-Intl.DisplayNames description: > Intl.DisplayNames.name is "DisplayNames". info: | 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] features: [Intl.DisplayNames] --- 840 -
options-fallback-abrupt-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from GetOption fallback info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... 15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames] locale: [en] --- 1257 -
options-fallback-invalid-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from an invalid fallback option info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », "language"). 13. If type is undefined, throw a TypeError exception. ... 15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). 2. If value is not undefined, then ... 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. ... features: [Intl.DisplayNames] locale: [en] --- 2081 -
options-fallback-toString-abrupt-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from GetOption fallback info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 10. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames, Symbol] locale: [en] --- 1867 -
options-fallback-valid.js --- esid: sec-Intl.DisplayNames description: > Valid options for fallback info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 10. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... 15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames] locale: [en] --- 1675 -
options-getoptionsobject.js --- esid: sec-Intl.DisplayNames description: Checks handling of non-object option arguments to the DisplayNames constructor. info: | Intl.DisplayNames ( locales, options ) features: [Intl.DisplayNames,BigInt] --- 587 -
options-languagedisplay-abrupt-throws.js --- esid: sec-Intl.DisplayNames description: Return abrupt completion from GetOption fallback info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... 24. Let languageDisplay be ? GetOption(options, "languageDisplay", "string", « "dialect", "standard" », "dialect"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames-v2] locale: [en] --- 1299 -
options-languagedisplay-invalid-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from an invalid fallback option info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », "language"). 13. If type is undefined, throw a TypeError exception. ... 24. Let languageDisplay be ? GetOption(options, "languageDisplay", "string", « "dialect", "standard" », "dialect"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). 2. If value is not undefined, then ... 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. ... features: [Intl.DisplayNames-v2] locale: [en] --- 2174 -
options-languagedisplay-toString-abrupt-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from GetOption fallback info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 24. Let languageDisplay be ? GetOption(options, "languageDisplay", "string", « "dialect", "standard" », "dialect"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames-v2, Symbol] locale: [en] --- 1753 -
options-languagedisplay-valid.js --- esid: sec-Intl.DisplayNames description: Valid options for languageDisplay info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 10. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... 24. Let languageDisplay be ? GetOption(options, "languageDisplay", "string", « "dialect", "standard" », "dialect"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames-v2] locale: [en] --- 1766 -
options-localeMatcher-abrupt-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from GetOption localeMatcher info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. If options is undefined, then a. Let options be ObjectCreate(null). 5. Else a. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames] locale: [en] --- 1168 -
options-localeMatcher-invalid-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from an invalid localeMatcher option info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. If options is undefined, then a. Let options be ObjectCreate(null). 5. Else a. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). 2. If value is not undefined, then ... 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. ... features: [Intl.DisplayNames] locale: [en] --- 1974 -
options-localeMatcher-toString-abrupt-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from GetOption localeMatcher info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. If options is undefined, then a. Let options be ObjectCreate(null). 5. Else a. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames, Symbol] locale: [en] --- 1698 -
options-localeMatcher-valid.js --- esid: sec-Intl.DisplayNames description: > Valid options for localeMatcher info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 10. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... 15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames] locale: [en] --- 1717 -
options-null-throws.js --- esid: sec-Intl.DisplayNames description: > Throws TypeError if options is null info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. If options is undefined, then a. Let options be ObjectCreate(null). 5. Else a. Let options be ? ToObject(options). ... features: [Intl.DisplayNames] locale: [en] --- 821 -
options-random-properties-unchecked.js --- esid: sec-Intl.DisplayNames description: > Random options are not checked or used, including case sensitive info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 7. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 10. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... 15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames] locale: [en] --- 1848 -
options-style-abrupt-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from GetOption style info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. If options is undefined, then a. Let options be ObjectCreate(null). 5. Else a. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 11. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... 13. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency", "weekday", "month", "quarter", "dayPeriod", "dateTimeField" », "language"). ... 15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames] locale: [en] --- 1554 -
options-style-invalid-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from an invalid style option info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. If options is undefined, then a. Let options be ObjectCreate(null). 5. Else a. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 11. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). 2. If value is not undefined, then ... 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. ... features: [Intl.DisplayNames] locale: [en] --- 2114 -
options-style-toString-abrupt-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from GetOption style info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. If options is undefined, then a. Let options be ObjectCreate(null). 5. Else a. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 11. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames, Symbol] locale: [en] --- 1771 -
options-style-valid.js --- esid: sec-Intl.DisplayNames description: > Valid options for localeMatcher info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 10. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames] locale: [en] --- 1545 -
options-type-abrupt-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from GetOption type info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. If options is undefined, then a. Let options be ObjectCreate(null). 5. Else a. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 11. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... 13. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency", "weekday", "month", "quarter", "dayPeriod", "dateTimeField" », "language"). ... 15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames] locale: [en] --- 1552 -
options-type-invalid-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from an invalid type option info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 10. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... 15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). 2. If value is not undefined, then ... 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. ... features: [Intl.DisplayNames] locale: [en] --- 2543 -
options-type-toString-abrupt-throws.js --- esid: sec-Intl.DisplayNames description: > Return abrupt completion from GetOption type info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. If options is undefined, then a. Let options be ObjectCreate(null). 5. Else a. Let options be ? ToObject(options). ... 8. Let matcher be ? GetOption(options, "localeMatcher", "string", « "lookup", "best fit" », "best fit"). ... 11. Let style be ? GetOption(options, "style", "string", « "narrow", "short", "long" », "long"). ... 13. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency", "weekday", "month", "quarter", "dayPeriod", "dateTimeField" », "language"). ... 15. Let fallback be ? GetOption(options, "fallback", "string", « "code", "none" », "code"). ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames, Symbol] locale: [en] --- 2055 -
options-type-valid.js --- esid: sec-Intl.DisplayNames description: > Valid options for localeMatcher info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 4. Let options be ? ToObject(options). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. ... GetOption ( options, property, type, values, fallback ) 1. Let value be ? Get(options, property). ... features: [Intl.DisplayNames] locale: [en] --- 1334 -
prop-desc.js --- esid: sec-Intl.DisplayNames description: > Property descriptor of Intl.DisplayNames info: | 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] features: [Intl.DisplayNames] --- 768 -
proto-from-ctor-realm.js --- esid: sec-Intl.DisplayNames description: Default [[Prototype]] value derived from realm of the newTarget info: | Intl.DisplayNames ( locales , options ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let displayNames be ? OrdinaryCreateFromConstructor(NewTarget, "%DisplayNamesPrototype%", « [[InitializedDisplayNames]], [[Locale]], [[Style]], [[Type]], [[Fallback]], [[Fields]] »). ... 12. Let type be ? GetOption(options, "type", "string", « "language", "region", "script", "currency" », undefined). 13. If type is undefined, throw a TypeError exception. 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.DisplayNames, cross-realm, Reflect] --- 1612 -
proto.js --- esid: sec-Intl.DisplayNames description: > The internal prototype of Intl.DisplayNames features: [Intl.DisplayNames] --- 381 -
prototype -
shell.js 0 -
undefined-newtarget-throws.js --- esid: sec-Intl.DisplayNames description: > Throws a TypeError if Intl.DisplayNames is called as a function. info: | Intl.DisplayNames ([ locales [ , options ]]) 1. If NewTarget is undefined, throw a TypeError exception. ... features: [Intl.DisplayNames] --- 632 -