2020-08-25 23:27:04 +00:00
|
|
|
// Copyright 2020 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.
|
|
|
|
|
2020-12-08 05:10:44 +00:00
|
|
|
// Flags: --expose-gc
|
2020-08-25 23:27:04 +00:00
|
|
|
|
|
|
|
let segmenter = new Intl.Segmenter();
|
|
|
|
let segments = segmenter.segment(undefined);
|
|
|
|
for (let seg of segments) {
|
|
|
|
segments = gc(); // free segments and call gc.
|
|
|
|
}
|