diff options
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-1208805.js')
-rw-r--r-- | deps/v8/test/mjsunit/regress/regress-1208805.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-1208805.js b/deps/v8/test/mjsunit/regress/regress-1208805.js new file mode 100644 index 0000000000..4b6490664e --- /dev/null +++ b/deps/v8/test/mjsunit/regress/regress-1208805.js @@ -0,0 +1,25 @@ +// 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. + +// Flags: --allow-natives-syntax +'use strict' + +function outer_func() { + function inner_func() { + let step = 1; + + for (let i = 0; i < 10; i = i + step) { + const v14 = step++; + const v15 = v14 * i; + function dumb_func() { + } + } + } + for (let v24 = 0; v24 < 10; v24++) { + inner_func(); + } +} +for (let j = 0; j < 10000; j++) { + outer_func(); +} |