<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Javascript error, only when debugger is _not_ connected"
   href="https://bugs.webkit.org/show_bug.cgi?id=156688">156688</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Javascript error, only when debugger is _not_ connected
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>JavaScriptCore
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>markus.johnsson&#64;infviz.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I have encountered a bug in Safari/webkit that appears only when the developer tools are *not* open, which makes me think it is related to optimisation of javascript. 

The easiest way to confirm there is an issue is to use the following link (no interaction required):
<a href="http://res.statisticsstudio.com/app-v81/player.htm?app=b546db83-f6dd-4c0c-b266-9637265a08f9&amp;v=v81">http://res.statisticsstudio.com/app-v81/player.htm?app=b546db83-f6dd-4c0c-b266-9637265a08f9&amp;v=v81</a>

Opened with the developer tools / web inspector open, it loads correctly. If the developer tools are not open, it does not load.

It loads fine in Chrome, IE, Firefox

This link, for comparison (same javascript, less data), loads OK even without debugger in Safari:
<a href="http://res.statisticsstudio.com/app-v81/player.htm?app=cc22d264-322d-4cd4-819a-e1d5efbd7c21&amp;v=v81">http://res.statisticsstudio.com/app-v81/player.htm?app=cc22d264-322d-4cd4-819a-e1d5efbd7c21&amp;v=v81</a>


An interactive repro is also available (which actually outputs an error):
<a href="http://res.statisticsstudio.com/app-v81/default.htm?app=9650898a-0a88-49e6-b10d-b1ef68544a6d">http://res.statisticsstudio.com/app-v81/default.htm?app=9650898a-0a88-49e6-b10d-b1ef68544a6d</a>

1. Close developer tools / web inspector window
2. Click “Kom igång!”
3. Check “Utbildningsnivå” in the left panel
4. Click “Klar” at the bottom
5. Click the leftmost layout button
6. Click “Linjediagram”
7. In the far right panel, click “Län”
8. Click all items in the “Län” list (crashes towards the end of the list: “undefined is not an object”)

Try again with developer tools open, at it does not crash.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>