e40c8a3a32
Bug: chromium:1208805 Change-Id: Ia211d74f8de1dd031d5bda9885ec567e2d56b4cf Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2897089 Auto-Submit: Nico Hartmann <nicohartmann@chromium.org> Reviewed-by: Tobias Tebbi <tebbi@chromium.org> Commit-Queue: Tobias Tebbi <tebbi@chromium.org> Cr-Commit-Position: refs/heads/main@{#79323}
26 lines
593 B
JavaScript
26 lines
593 B
JavaScript
// 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();
|
|
}
|