nodejs/deps/v8/test/mjsunit/maglev/regress/regress-crbug-1513626.js
Michaël Zasso 09a8440b45
deps: update V8 to 12.2.281.27
PR-URL: https://github.com/nodejs/node/pull/51362
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2024-03-31 15:36:07 +02:00

28 lines
751 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
const v11 = new Promise(()=>{});
for (let v12 = 0; v12 < 5; v12++) {
async function* f13( a15) {
for (let v16 = 0; v16 < 5; v16++) {
if (v12 == 4 && v16 == 4) {
%OptimizeOsr();
}
for (const v17 in v11) {
yield* SharedArrayBuffer;
}
}
for (let v24 = 0; v24 < 5; v24++) {
Math.acosh(a15 %= 4096 % v24);
}
return f13;
}
if (v12 == 0) {
%PrepareFunctionForOptimization(f13);
}
f13().next();
}