Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / activation-object-function-lifetime.html
blob6fc557b796cbdbdbc67b68a395bb6a53f8e11438
1 <p>This page tests for regressions against http://bugs.webkit.org/show_bug.cgi?id=15785
2 REGRESSION(r27344): Crash on load at finance.yahoo.com</p>
3 <p>If the test passes, you'll see a PASS message below.</p>
4 <pre id="console"></pre>
6 <script>
7 if (this.testRunner)
8 testRunner.dumpAsText();
10 function log(s)
12 document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
15 // Make a closure with a function that takes the slow path to variable lookup.
16 var f = eval("(function (x) { return function() { return x; } })()");
18 // Force GC.
19 if (this.GCController)
20 GCController.collect();
21 else {
22 for (var i = 0; i < 10000; ++i) {
23 ({ });
27 // Call the function.
28 f();
30 log("PASS: You didn't crash.\n");
32 </script>