PR-URL: https://github.com/nodejs/node/pull/59805 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
12 lines
350 B
JavaScript
12 lines
350 B
JavaScript
// Copyright 2025 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.
|
|
|
|
// Flags: --stack-size=100
|
|
|
|
var ary=[0];
|
|
for(var i=1; i<10000; i++)
|
|
ary=[ary, i];
|
|
|
|
assertThrows(() => ary.toString(),
|
|
RangeError, 'Maximum call stack size exceeded');
|