summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/intl402/PluralRules/internals.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/intl402/PluralRules/internals.js')
-rw-r--r--js/src/tests/test262/intl402/PluralRules/internals.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/PluralRules/internals.js b/js/src/tests/test262/intl402/PluralRules/internals.js
new file mode 100644
index 0000000000..db0b3a19b9
--- /dev/null
+++ b/js/src/tests/test262/intl402/PluralRules/internals.js
@@ -0,0 +1,19 @@
+// 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);
+assert.sameValue(actualPrototype, Intl.PluralRules.prototype, "Prototype of object constructed by Intl.PluralRules isn't Intl.PluralRules.prototype; got " + actualPrototype);
+
+assert(Object.isExtensible(obj), "Object constructed by Intl.PluralRules must be extensible.");
+
+reportCompare(0, 0);