Files
Kmake/deps/v8/test/mjsunit/turboshaft/regress-391500839.js

34 lines
683 B
JavaScript
Raw Normal View History

2026-05-26 23:36:42 -07:00
// Copyright 2025 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 --turbofan --single-threaded
// Flags: --jit-fuzzing --turboshaft-string-concat-escape-analysis
function f0() {}
class C3 {
toString() {
try {
Map();
} catch(e10) {
}
}
}
const v11 = new C3();
function f12(c) {
const v13 = `setMinutes${f0}valueOf`;
const v15 = [];
const v16 = v11.toString;
Reflect.apply(v16, v13, v15);
}
%PrepareFunctionForOptimization(f12);
f12();
f12();
%OptimizeFunctionOnNextCall(f12);
f12();