blob: aa18adbc5b74b3d74e395ea27dc498228c362492 [file] [log] [blame]
// 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.supportedLocalesOf
description: Checks handling of a null options argument to the supportedLocalesOf function.
info: |
SupportedLocales ( availableLocales, requestedLocales, options )
1. If options is not undefined, then
a. Let options be ? ToObject(options).
features: [Intl.ListFormat]
---*/
assert.sameValue(typeof Intl.ListFormat.supportedLocalesOf, "function",
"Should support Intl.ListFormat.supportedLocalesOf.");
assert.throws(TypeError, function() {
Intl.ListFormat.supportedLocalesOf([], null);
}, "Should throw when passing null as the options argument");