mirror of https://github.com/tc39/test262.git
22 lines
692 B
JavaScript
22 lines
692 B
JavaScript
// Copyright 2016 Mozilla Corporation. All rights reserved.
|
|
// This code is governed by the license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-intl-pluralrules-constructor
|
|
description: >
|
|
Tests that objects constructed by Intl.PluralRules have the specified
|
|
internal properties.
|
|
author: Zibi Braniecki
|
|
---*/
|
|
|
|
var obj = new Intl.PluralRules();
|
|
|
|
var actualPrototype = Object.getPrototypeOf(obj);
|
|
if (actualPrototype !== Intl.PluralRules.prototype) {
|
|
$ERROR("Prototype of object constructed by Intl.PluralRules isn't Intl.PluralRules.prototype; got " + actualPrototype);
|
|
}
|
|
|
|
if (!Object.isExtensible(obj)) {
|
|
$ERROR("Object constructed by Intl.PluralRules must be extensible.");
|
|
}
|