// 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.// Test Infinity, -Infinity, NaN won't crash with any notation in formatToParts.letvalidNotations=["standard","compact","engineering","scientific",];lettests=[123,Infinity,-Infinity,NaN];for(constnotationofvalidNotations){letnf=newIntl.NumberFormat("en",{notation});for(consttestoftests){assertDoesNotThrow(()=>nf.format(test));assertDoesNotThrow(()=>nf.formatToParts(test));}}