diff options
Diffstat (limited to 'js/src/tests/test262/intl402/ListFormat/prototype/format/iterable-undefined.js')
-rw-r--r-- | js/src/tests/test262/intl402/ListFormat/prototype/format/iterable-undefined.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/ListFormat/prototype/format/iterable-undefined.js b/js/src/tests/test262/intl402/ListFormat/prototype/format/iterable-undefined.js new file mode 100644 index 0000000000..9c922eb499 --- /dev/null +++ b/js/src/tests/test262/intl402/ListFormat/prototype/format/iterable-undefined.js @@ -0,0 +1,20 @@ +// 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.format(undefined). +info: | + StringListFromIterable + 1. If iterable is undefined, then + a. Return a new empty List. +features: [Intl.ListFormat] +---*/ + +let lf = new Intl.ListFormat(); + +assert.sameValue("", lf.format(undefined)); + +reportCompare(0, 0); |