[Webkit-unassigned] [Bug 62897] New: Using "throw" doesn't result in url and line number being set in the exception.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 17 11:58:34 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=62897

           Summary: Using "throw" doesn't result in url and line number
                    being set in the exception.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: levin at chromium.org
                CC: ggaren at apple.com, oliver at apple.com, levin at chromium.org


I guess that there is a missing call to addErrorInfo somewhere.


Here's a test case:

<html>
<body>
This should result in a one line of output with a message, url and line number.
<div id=result></div>
<script type="text/javascript" language="javascript">
if (window.layoutTestController) {
    layoutTestController.dumpAsText();
    layoutTestController.waitUntilDone();
}

function log(message)
{
    document.getElementById("result").innerHTML += message + "<br>";
}

window.onerror = function(msg, url, line) {
    // Clean up url here to remove path.
    log( "msg " + msg + " url " + url + " line " + line );
    if (window.layoutTestController)
        layoutTestController.notifyDone();
}

throw "Test Error";
</script>
</body>
</html>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list