// 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-toobjectlettestCases=[null,// Nulltrue,// Booleanfalse,// Boolean1234,// Number"string",// StringSymbol('foo'),// Symbol9007199254740991n// BigInt];testCases.forEach(function(testCase){assertThrows(()=>newIntl.Segmenter("en",testCase),TypeError);});