nodejs/deps/v8/test/mjsunit/regress/regress-352402863.js
Michaël Zasso 9d7cd9b864
deps: update V8 to 12.8.374.13
PR-URL: https://github.com/nodejs/node/pull/54077
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
2024-08-16 16:03:01 +02:00

33 lines
795 B
JavaScript

// 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 --no-lazy-feedback-allocation
function f0() {
for (let i2 = 0;
(() => {
i2--;
let v4 = 1;
v4--;
return i2 < v4;
})();
(() => {
const v8 = i2++;
const v9 = v8 + v8;
const v11 = Intl.NumberFormat;
v11();
v9 & v9;
++i2;
})()) {
const v17 = [-5n];
for (const v18 of v17) {
v17[100] = 1;
}
}
}
const v20 = %PrepareFunctionForOptimization(f0);
f0();
const v22 = %OptimizeFunctionOnNextCall(f0);
f0();