[Webkit-unassigned] [Bug 17663] New: Wrong sequencing of argument list evaluation

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 3 21:15:53 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=17663

           Summary: Wrong sequencing of argument list evaluation
           Product: WebKit
           Version: 525+ (Nightly build)
          Platform: Other
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: maksim at kde.org


Per 11.2.3, the argument list is evaluate right after evaluating the 
function, and before checking whether the result is actually and object and
callable. Hence, the following must print "hi":

<script>

function bad() {
    throw "hi";
}

try {
    var f = 42;
    f(bad());
} catch (e) {
    alert(e);
}
</script>


JSC evaluates the argument list later down in the sequence.


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



More information about the webkit-unassigned mailing list