OLD | NEW |
---|---|
(Empty) | |
1 // 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 | |
5 function 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 } | |
16 function removeProperties(o) | |
17 { | |
18 delete o.p8; | |
19 delete o.p7; | |
20 delete o.p6; | |
21 delete o.p5; | |
22 } | |
23 function makeO() | |
24 { | |
25 var o = { }; | |
26 addProperties(o); | |
27 removeProperties(o); | |
28 addProperties(o); | |
29 } | |
30 for (var i = 0; i < 3; ++i) { | |
31 o = makeO(); | |
32 } | |
OLD | NEW |