/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/intl/segmenter/getoptionsobject.js
20 строк
625 B
Michaël Zasso
deps: update V8 to 9.1.269.36
10 июн 2021, 12:10
Не верифицирован
10 июн 2021, 12:10
a7cbf19
Код
Авторство
О чём код?
// Copyright 2021 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Test Intl.Segmenter call GetOptionsObject instead of ToObject // https://tc39.es/ecma402/#sec-getoptionsobject // https://tc39.es/ecma262/#sec-toobject let testCases = [ null, // Null true, // Boolean false, // Boolean 1234, // Number "string", // String Symbol('foo'), // Symbol 9007199254740991n // BigInt ]; testCases.forEach(function (testCase) { assertThrows(() => new Intl.Segmenter("en", testCase), TypeError); });