| document.getElementById("console").innerHTML += msg + "<br>"; |
| window.onerror = function (error, url, line, column, error) { |
| url = url ? url.match( /[^\/]+\/?$/ )[0] : url; |
| log("Error caught successfully: " + error + "\nFile: " + url + "\nLine: " + line + "\nColumn: " + column + "\nError: " + error) |
| <p>Test that window.onerror is invoked for syntax error in eval. You should see a log record if window.onerror is working properly for this test.<a href="https://bugs.webkit.org/show_bug.cgi?id=8519">Bug 8519</a>.</p> |