// Copyright 2018 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.constDEPTH=128;functionmakeNestedArray(depth,value){returndepth>0?[value,makeNestedArray(depth-1,value)]:[value];}constarray=makeNestedArray(DEPTH,'a');constexpected='a'+',a'.repeat(DEPTH);assertSame(expected,array.join());// Verify cycle detection is still working.assertSame(expected,array.join());