// Copyright 2019 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.// Well-formed but invalid numberingSystem should not throw RangeError.varnumberingSystem="abc";varlen=3;constintlClasses=[Intl.DateTimeFormat,Intl.NumberFormat,Intl.RelativeTimeFormat];intlClasses.forEach(function(cls){varexpected=newcls("en").resolvedOptions().numberingSystem;varobj;for(vari=3;i<20;i++,len++,numberingSystem+="a"){assertDoesNotThrow(()=>obj=newcls("en",{numberingSystem}),"Well-formed numberingSystem should not throw");assertEquals(expected,obj.resolvedOptions().numberingSystem);if(len==8){numberingSystem+="-ab";len=2;}}});