mirror of
https://github.com/nodejs/node.git
synced 2025-05-15 19:07:23 +00:00

PR-URL: https://github.com/nodejs/node/pull/49639 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
24 lines
560 B
JavaScript
24 lines
560 B
JavaScript
// Copyright 2023 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: --turboshaft --no-lazy-feedback-allocation --allow-natives-syntax
|
|
|
|
function f1(a3) {
|
|
function f4() {
|
|
for (let [,v10] of "-1328336618") {
|
|
Math.acosh(Math);
|
|
return 3;
|
|
}
|
|
}
|
|
let v13;
|
|
try { v13 = f4(); } catch (e) {}
|
|
[a3].findIndex(f4, v13);
|
|
return f1;
|
|
}
|
|
%PrepareFunctionForOptimization(f1);
|
|
const v16 = f1();
|
|
v16();
|
|
%OptimizeFunctionOnNextCall(f1);
|
|
f1();
|