mirror of https://github.com/tc39/test262.git
21 lines
756 B
JavaScript
21 lines
756 B
JavaScript
|
// Copyright 2018 Igalia, S.L. All rights reserved.
|
||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||
|
|
||
|
/*---
|
||
|
esid: sec-Intl.Segmenter.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.Segmenter]
|
||
|
---*/
|
||
|
|
||
|
assert.sameValue(typeof Intl.Segmenter.supportedLocalesOf, "function",
|
||
|
"Should support Intl.Segmenter.supportedLocalesOf.");
|
||
|
|
||
|
assert.throws(TypeError, function() {
|
||
|
Intl.Segmenter.supportedLocalesOf([], null);
|
||
|
}, "Should throw when passing null as the options argument");
|