Skip to content
Snippets Groups Projects
Commit ecf814bb authored by André Bargull's avatar André Bargull Committed by Rick Waldron
Browse files

No longer use testBuiltInObject for built-in constructors

parent 4337b396
No related branches found
No related tags found
No related merge requests found
...@@ -12,4 +12,4 @@ author: Norbert Lindenberg ...@@ -12,4 +12,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js] includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(new Intl.NumberFormat().format, true, false); testBuiltInObject(new Intl.NumberFormat().format, true);
...@@ -12,4 +12,4 @@ author: Norbert Lindenberg ...@@ -12,4 +12,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js] includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format").get , true, false); testBuiltInObject(Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format").get , true);
...@@ -11,4 +11,4 @@ author: Norbert Lindenberg ...@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js] includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(Intl.NumberFormat.prototype.resolvedOptions, true, false); testBuiltInObject(Intl.NumberFormat.prototype.resolvedOptions, true);
...@@ -11,4 +11,4 @@ author: Norbert Lindenberg ...@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js] includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(Intl.NumberFormat.supportedLocalesOf, true, false); testBuiltInObject(Intl.NumberFormat.supportedLocalesOf, true);
...@@ -8,7 +8,12 @@ description: > ...@@ -8,7 +8,12 @@ description: >
built-in objects defined by the introduction of chapter 17 of the built-in objects defined by the introduction of chapter 17 of the
ECMAScript Language Specification. ECMAScript Language Specification.
author: Zibi Braniecki author: Zibi Braniecki
includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(Intl.PluralRules, true, true); assert.sameValue(Object.prototype.toString.call(Intl.PluralRules), "[object Function]",
"The [[Class]] internal property of a built-in function must be " +
"\"Function\".");
assert(Object.isExtensible(Intl.PluralRules), "Built-in objects must be extensible.");
assert.sameValue(Object.getPrototypeOf(Intl.PluralRules), Function.prototype);
...@@ -8,7 +8,13 @@ description: > ...@@ -8,7 +8,13 @@ description: >
built-in objects defined by the introduction of chapter 17 of the built-in objects defined by the introduction of chapter 17 of the
ECMAScript Language Specification. ECMAScript Language Specification.
author: Zibi Braniecki author: Zibi Braniecki
includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(Intl.PluralRules.prototype, false, false); assert.sameValue(Object.prototype.toString.call(Intl.PluralRules.prototype), "[object Object]",
"The [[Class]] internal property of a built-in non-function object must be " +
"\"Object\".");
assert(Object.isExtensible(Intl.PluralRules.prototype), "Built-in objects must be extensible.");
assert.sameValue(Object.getPrototypeOf(Intl.PluralRules.prototype), Object.prototype,
"Built-in prototype objects must have Object.prototype as their prototype.");
...@@ -11,4 +11,4 @@ author: Zibi Braniecki ...@@ -11,4 +11,4 @@ author: Zibi Braniecki
includes: [testBuiltInObject.js] includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(Intl.PluralRules.prototype.resolvedOptions, true, false); testBuiltInObject(Intl.PluralRules.prototype.resolvedOptions, true);
...@@ -11,4 +11,4 @@ author: Zibi Braniecki ...@@ -11,4 +11,4 @@ author: Zibi Braniecki
includes: [testBuiltInObject.js] includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(Intl.PluralRules.supportedLocalesOf, true, false); testBuiltInObject(Intl.PluralRules.supportedLocalesOf, true);
...@@ -11,4 +11,4 @@ author: Norbert Lindenberg ...@@ -11,4 +11,4 @@ author: Norbert Lindenberg
includes: [testBuiltInObject.js] includes: [testBuiltInObject.js]
---*/ ---*/
testBuiltInObject(String.prototype.localeCompare, true, false); testBuiltInObject(String.prototype.localeCompare, 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