b0fc24503c
Bug: chromium:774860 Change-Id: I180ca7e9e8d8603e0d61deb0eb71d758895d0f74 Reviewed-on: https://chromium-review.googlesource.com/721551 Reviewed-by: Toon Verwaest <verwaest@chromium.org> Commit-Queue: Igor Sheludko <ishell@chromium.org> Cr-Commit-Position: refs/heads/master@{#48630}
16 lines
403 B
JavaScript
16 lines
403 B
JavaScript
// 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();
|
|
})();
|