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 232900 424b31d77d2af4d13b5fd04cf574ffe0f05be668
parent 232899 d864cbdfee340e43ac06f570c093662e3dcff9cc
child 232901 97b76ccf75dc9e9fe76b72ebad9f0790aeef0ae2
push id4187
push userbhearsum@mozilla.com
push dateFri, 28 Nov 2014 15:29:12 +0000
treeherdermozilla-beta@f23cc6a30c11 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspast
bugs1076830
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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>