mirror of
https://github.com/nodejs/node.git
synced 2025-05-21 14:39:17 +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>
23 lines
459 B
JavaScript
23 lines
459 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: --allow-natives-syntax
|
|
|
|
function F0() {
|
|
}
|
|
function f6(a7) {
|
|
let v8 = 2147483647;
|
|
if (a7) {
|
|
v8 = -NaN;
|
|
}
|
|
let v11 = 1;
|
|
v11--;
|
|
assertTrue(isNaN(v8 / v11));
|
|
}
|
|
f6(F0);
|
|
%PrepareFunctionForOptimization(f6);
|
|
f6(F0);
|
|
%OptimizeFunctionOnNextCall(f6);
|
|
f6(F0);
|