summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/intl402/ListFormat/prototype/formatToParts/iterable-undefined.js
blob: ced482c74b3185aac22200ba076f31a68ab81b4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2019 Google Inc.  All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-Intl.ListFormat.prototype.format
description: >
    Checks the behavior of Abstract Operation StringListFromIterable
    called by Intl.ListFormat.prototype.formatToParts(undefined).
info: |
    StringListFromIterable
    1. If iterable is undefined, then
      a. Return a new empty List.
features: [Intl.ListFormat]
includes: [compareArray.js]
---*/

let lf = new Intl.ListFormat();

assert.compareArray([], lf.formatToParts(undefined));

reportCompare(0, 0);