| 1 |
// Copyright 2016 Mozilla Corporation. All rights reserved. |
| 2 |
// This code is governed by the license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
esid: sec-Intl.PluralRules |
| 6 |
description: > |
| 7 |
Tests that Intl.PluralRules meets the requirements for |
| 8 |
built-in objects defined by the introduction of chapter 17 of the |
| 9 |
ECMAScript Language Specification. |
| 10 |
author: Zibi Braniecki |
| 11 |
---*/ |
| 12 |
|
| 13 |
assert.sameValue(Object.prototype.toString.call(Intl.PluralRules), "[object Function]", |
| 14 |
"The [[Class]] internal property of a built-in function must be " + |
| 15 |
"\"Function\"."); |
| 16 |
|
| 17 |
assert(Object.isExtensible(Intl.PluralRules), "Built-in objects must be extensible."); |
| 18 |
|
| 19 |
assert.sameValue(Object.getPrototypeOf(Intl.PluralRules), Function.prototype); |