v8/test/mjsunit/regress/regress-crbug-774860.js

16 lines
403 B
JavaScript
Raw Normal View History

// Copyright 2017 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: --expose-gc --verify-heap
(function () {
class F extends Function {}
let f = new F("'use strict';");
// Create enough objects to complete slack tracking.
for (let i = 0; i < 20; i++) {
new F();
}
gc();
})();