blob: 6fd2ccb5bf414925b60594884728e84ff2ba5f48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Copyright 2019 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
var obj = {}
obj.__proto__ = null;
Object.defineProperty(obj, "prop", {
set: gc
});
for (var i = 0; i < 100 ; ++i) {
obj["prop"] = 0;
}
|