blob: 742dab1f3115518eafd2c5d1fd1372e96bf4ffc9 [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.Segmenter.supportedLocalesOf
description: >
Verifies there's no branding check for Intl.Segmenter.supportedLocalesOf().
info: |
Intl.Segmenter.supportedLocalesOf ( locales [, options ])
features: [Intl.Segmenter]
---*/
const supportedLocalesOf = Intl.Segmenter.supportedLocalesOf;
assert.sameValue(typeof supportedLocalesOf, "function");
const thisValues = [
undefined,
null,
true,
"",
Symbol(),
1,
{},
Intl.Segmenter,
Intl.Segmenter.prototype,
];
for (const thisValue of thisValues) {
const result = supportedLocalesOf.call(thisValue);
assert.sameValue(Array.isArray(result), true);
}