blob: d7128d575e7f79807f68ea684ea8a4710e397bd3 [file] [log] [blame]
// Copyright 2016 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 --ignition --turbo
class Base {}
class Subclass extends Base {
constructor() {
%DeoptimizeNow();
super();
}
}
new Subclass();
new Subclass();
%OptimizeFunctionOnNextCall(Subclass);
new Subclass();