Files
Kmake/deps/v8/test/mjsunit/maglev/regress/regress-371044612.js

23 lines
499 B
JavaScript
Raw Normal View History

2026-05-26 23:36:42 -07:00
// Copyright 2024 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 --maglev-optimistic-peeled-loops
function f0() {
for (let i2 = 0;
(() => {
return i2 < 10;
})();
i2++) {
if (i2 <= NaN) {
throw 0;
}
}
}
f0();
%PrepareFunctionForOptimization(f0);
f0();
%OptimizeMaglevOnNextCall(f0);
f0();