Files
Kmake/deps/v8/test/mjsunit/regress/regress-crbug-1475885.js
2026-05-26 23:36:42 -07:00

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);