Files
Kmake/deps/v8/test/mjsunit/regress/regress-1212244.js

31 lines
681 B
JavaScript
Raw Normal View History

2026-05-26 23:36:42 -07:00
// Copyright 2021 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-turbo-loop-peeling
function foo(base) {
class klass extends base {
constructor() {
try {
undefined();
} catch (e) {}
super();
this.d = 4.2;
this.o = {};
}
}
var __v_58 = new klass();
var __v_59 = new klass();
}
%PrepareFunctionForOptimization(foo);
foo(Uint8Array);
foo(Uint8ClampedArray);
foo(Int16Array);
foo(Uint16Array);
foo(Int32Array);
foo(Uint32Array);
%OptimizeFunctionOnNextCall(foo);
assertThrows(foo);