blob: e6a664d422484b0f7ba315455e235d64c507c7b7 [file] [log] [blame]
Andrew Topef837fa2017-10-04 22:44:25 -07001// Copyright 2017 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5function addProperties(o)
6{
7 o.p1 = 1;
8 o.p2 = 2;
9 o.p3 = 3;
10 o.p4 = 4;
11 o.p5 = 5;
12 o.p6 = 6;
13 o.p7 = 7;
14 o.p8 = 8;
15}
16function removeProperties(o)
17{
18 delete o.p8;
19 delete o.p7;
20 delete o.p6;
21 delete o.p5;
22}
23function makeO()
24{
25 var o = { };
26 addProperties(o);
27 removeProperties(o);
28 addProperties(o);
29}
30for (var i = 0; i < 3; ++i) {
31 o = makeO();
32}