locales-empty.js (795B)
1 // Copyright 2018 the V8 project authors, Igalia, S.L. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 esid: sec-Intl.Segmenter.supportedLocalesOf 6 description: Checks handling of an empty locales argument to the supportedLocalesOf function. 7 info: | 8 Intl.Segmenter.supportedLocalesOf ( locales [, options ]) 9 10 3. Return ? SupportedLocales(availableLocales, requestedLocales, options). 11 includes: [compareArray.js] 12 features: [Intl.Segmenter] 13 ---*/ 14 15 assert.sameValue(typeof Intl.Segmenter.supportedLocalesOf, "function", 16 "Should support Intl.Segmenter.supportedLocalesOf."); 17 18 assert.compareArray(Intl.Segmenter.supportedLocalesOf(), []); 19 assert.compareArray(Intl.Segmenter.supportedLocalesOf([]), []); 20 21 reportCompare(0, 0);