Bug 1076830 - Name the test function so it doesn't get GC'd. r=past
authorNick Fitzgerald <fitzgen@gmail.com>
Tue, 07 Oct 2014 16:23:00 +0200
changeset 209685 424b31d77d2af4d13b5fd04cf574ffe0f05be668
parent 209684 d864cbdfee340e43ac06f570c093662e3dcff9cc
child 209686 97b76ccf75dc9e9fe76b72ebad9f0790aeef0ae2
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerspast
bugs1076830
milestone35.0a1
Bug 1076830 - Name the test function so it doesn't get GC'd. r=past
browser/devtools/debugger/test/doc_breakpoints-reload.html
--- a/browser/devtools/debugger/test/doc_breakpoints-reload.html
+++ b/browser/devtools/debugger/test/doc_breakpoints-reload.html
@@ -1,12 +1,13 @@
 <!-- Any copyright is dedicated to the Public Domain.
      http://creativecommons.org/publicdomain/zero/1.0/ -->
 <!DOCTYPE html>
 <head>
   <meta charset="utf-8"/>
   <title>Debugger Breakpoints Other Tabs Test Page</title>
 </head>
 <script>
-  (function () {
+  function theTest() {
     window.foo = "break on me";
-  }());
+  }
+  theTest();
 </script>