summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/intl402/ListFormat/instance/prototype.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/intl402/ListFormat/instance/prototype.js')
-rw-r--r--js/src/tests/test262/intl402/ListFormat/instance/prototype.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/ListFormat/instance/prototype.js b/js/src/tests/test262/intl402/ListFormat/instance/prototype.js
new file mode 100644
index 0000000000..123fa04b38
--- /dev/null
+++ b/js/src/tests/test262/intl402/ListFormat/instance/prototype.js
@@ -0,0 +1,21 @@
+// Copyright 2018 Igalia, S.L. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+esid: sec-Intl.ListFormat
+description: Intl.ListFormat instance object is created from %ListFormatPrototype%.
+info: |
+ Intl.ListFormat ([ locales [ , options ]])
+
+ 2. Let listFormat be ? OrdinaryCreateFromConstructor(NewTarget, "%ListFormatPrototype%", « [[InitializedListFormat]], [[Locale]], [[Type]], [[Style]] »).
+features: [Intl.ListFormat]
+---*/
+
+const value = new Intl.ListFormat();
+assert.sameValue(
+ Object.getPrototypeOf(value),
+ Intl.ListFormat.prototype,
+ "Object.getPrototypeOf(value) equals the value of Intl.ListFormat.prototype"
+);
+
+reportCompare(0, 0);