Skip to content
Snippets Groups Projects
Commit e845e21b authored by Rick Waldron's avatar Rick Waldron Committed by Leo Balter
Browse files

Intl.Locale: minor fixups (#1554)

- fix mixed up test & info
- add Symbol feature
- maximize length is 0
- maximize configurability is true
parent b77a262b
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ info: | ...@@ -9,7 +9,7 @@ info: |
Intl.Locale( tag [, options] ) Intl.Locale( tag [, options] )
7. If Type(tag) is not String or Object, throw a TypeError exception. 7. If Type(tag) is not String or Object, throw a TypeError exception.
features: [Intl.Locale] features: [Intl.Locale, Symbol]
---*/ ---*/
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
......
...@@ -4,23 +4,30 @@ ...@@ -4,23 +4,30 @@
/*--- /*---
esid: sec-intl.locale esid: sec-intl.locale
description: > description: >
The value of the [[Prototype]] internal slot of the Intl.Locale constructor is the "Locale" property of Intl.
intrinsic object %FunctionPrototype%.
info: | info: |
The value of Intl.Locale.prototype is %LocalePrototype%. Intl.Locale (...)
This property has the attributes 7 Requirements for Standard Built-in ECMAScript Objects
{ [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: false }.
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] includes: [propertyHelper.js]
features: [Intl.Locale] features: [Intl.Locale]
---*/ ---*/
assert.sameValue(typeof Intl.Locale, "function", "typeof Intl.Locale is function");
verifyProperty(Intl, "Locale", { verifyProperty(Intl, "Locale", {
value: Intl.Locale, value: Intl.Locale,
writable: false, writable: true,
enumerable: false, enumerable: false,
configurable: false, configurable: true,
}); });
...@@ -15,7 +15,7 @@ features: [Intl.Locale] ...@@ -15,7 +15,7 @@ features: [Intl.Locale]
---*/ ---*/
verifyProperty(Intl.Locale.prototype.maximize, 'length', { verifyProperty(Intl.Locale.prototype.maximize, 'length', {
value: 1, value: 0,
writable: false, writable: false,
enumerable: false, enumerable: false,
configurable: true configurable: true
......
...@@ -16,14 +16,14 @@ features: [Intl.Locale] ...@@ -16,14 +16,14 @@ features: [Intl.Locale]
---*/ ---*/
assert.sameValue( assert.sameValue(
typeof Intl.Locale.prototype.maximize, typeof Intl.Locale.prototype.maximize,
'function', 'function',
"typeof Intl.Locale.prototype.maximize is function" 'typeof Intl.Locale.prototype.maximize is function'
); );
verifyProperty(Intl.Locale.prototype, 'maximize', { verifyProperty(Intl.Locale.prototype, 'maximize', {
writable: true, writable: true,
enumerable: false, enumerable: false,
configurable: false, configurable: true,
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment