Ticket #5382: iehashbug.html

File iehashbug.html, 446 bytes (added by haysmark, 6 months ago)

Test demonstrating IE hash bug, which causes IE to fail to release the memory even on delete and CollectGarbage?().

Line 
1<html>
2<head>
3        <script>
4                hash={};
5                function add(){
6                        var key=String(Math.random());
7                        hash[key]=Math.random();
8                        delete hash[key];       
9                        CollectGarbage();
10                        setTimeout(add,10);
11                }
12                function run(){
13                        setTimeout(add,10);
14                }
15        </script>
16</head>
17<body>
18        <p>IEXPLORE.EXE (IE6) will steadily eat up your memory. And it's calling CollectGarbage() too!</p>
19        <button onclick="run()">run</button>
20        <div id="status"></div>
21</body>