Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/intl402/PluralRules/internals.js

raw
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-constructor
6 description: >
7 Tests that objects constructed by Intl.PluralRules have the specified
8 internal properties.
9 author: Zibi Braniecki
10 ---*/
11
12 var obj = new Intl.PluralRules();
13
14 var actualPrototype = Object.getPrototypeOf(obj);
15 assert.sameValue(actualPrototype, Intl.PluralRules.prototype, "Prototype of object constructed by Intl.PluralRules isn't Intl.PluralRules.prototype; got " + actualPrototype);
16
17 assert(Object.isExtensible(obj), "Object constructed by Intl.PluralRules must be extensible.");