| 1 |
// Copyright (C) 2021 André Bargull. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
esid: sec-intl.supportedvaluesof |
| 6 |
description: > |
| 7 |
Intl.supportedValuesOf is a built-in function object.. |
| 8 |
info: | |
| 9 |
Intl.supportedValuesOf ( key ) |
| 10 |
|
| 11 |
18 ECMAScript Standard Built-in Objects: |
| 12 |
Unless specified otherwise, a built-in object that is callable as a function |
| 13 |
is a built-in function object with the characteristics described in 10.3. |
| 14 |
Unless specified otherwise, the [[Extensible]] internal slot of a built-in |
| 15 |
object initially has the value true. |
| 16 |
|
| 17 |
Unless otherwise specified every built-in function and every built-in |
| 18 |
constructor has the Function prototype object, which is the initial value |
| 19 |
of the expression Function.prototype (20.2.3), as the value of its |
| 20 |
[[Prototype]] internal slot. |
| 21 |
|
| 22 |
Built-in function objects that are not identified as constructors do not |
| 23 |
implement the [[Construct]] internal method unless otherwise specified in |
| 24 |
the description of a particular function. |
| 25 |
includes: [isConstructor.js] |
| 26 |
features: [Intl-enumeration, Reflect.construct] |
| 27 |
---*/ |
| 28 |
|
| 29 |
assert.sameValue(typeof Intl.supportedValuesOf, "function", |
| 30 |
"Intl.supportedValuesOf is a function"); |
| 31 |
|
| 32 |
assert(!Object.prototype.hasOwnProperty.call(Intl.supportedValuesOf, "prototype"), |
| 33 |
"Intl.supportedValuesOf doesn't have an own 'prototype' property"); |
| 34 |
|
| 35 |
assert(Object.isExtensible(Intl.supportedValuesOf), |
| 36 |
"Built-in objects must be extensible"); |
| 37 |
|
| 38 |
assert.sameValue(Object.getPrototypeOf(Intl.supportedValuesOf), Function.prototype, |
| 39 |
"[[Prototype]] of Intl.supportedValuesOf is Function.prototype"); |
| 40 |
|
| 41 |
assert(!isConstructor(Intl.supportedValuesOf), |
| 42 |
"Intl.supportedValuesOf not a constructor function"); |
| 43 |
|
| 44 |
reportCompare(0, 0); |