blob: 3b34e876329ca36ef1b5b48466b6c4c05839411f [file] [log] [blame]
<html>
<head>
<script src="resources/profiler-test-JS-resources.js"></script>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.setJavaScriptProfilingEnabled(true);
}
function startTest()
{
console.profile("Throw within an eval.");
insertNewText();
endTest();
}
</script>
<script>
eval("throw('Test exception.');");
</script>
</head>
<body onload="startTest()">
This page throws an exception from within eval().
<br>
<br>
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. The profiler should not crash and still show the stack under
insertnewText().
<div id="output"></div>
</body>
</html>