OLD | NEW |
---|---|
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Flags: --expose-gc | 5 // Flags: --expose-gc |
6 | 6 |
7 var x = new Object(); | 7 var weak_map = new WeakMap; |
8 x.__defineGetter__('a', function() { return 7 }); | 8 var v = "[1]"; |
9 JSON.parse('{"a":2600753951}'); | 9 for (var i = 0; i < 100000; i++) { |
Michael Starzinger
2014/08/04 09:58:20
This test looks long-running is there any way we c
| |
10 v = "[1," + v + "]"; | |
11 } | |
12 weak_map = {}; | |
10 gc(); | 13 gc(); |
OLD | NEW |