[Webkit-unassigned] [Bug 19027] Exceptions aren't caught in some cases

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 13 04:06:30 PDT 2008


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


oliver at apple.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |javascript:try
                   |                            |{(valueThrower={valueOf:func
                   |                            |tion(){throw "throw from
                   |                            |valueOf"}}
                URL|                            |function () { executedRHS =
                   |                            |false; var result = 'PASS';
                   |                            |try { result =
                   |                            |++valueThrower; alert('FAIL:
                   |                            |Did not throw exception') }
                   |                            |catch (e) { if (result !=
                   |                            |'PASS' && executedRHS) {
                   |                            |alert('FAIL: "'+expr+'"
                   |                            |threw exception
                URL|                            |but modified assignment
                   |                            |target and executed RHS'); }
                   |                            |else if (result != 'PASS') {
                   |                            |alert('FAIL: "'+expr+'"
                   |                            |threw exception, but
                   |                            |modified assignment
                   |                            |target'); } else if
                   |                            |(executedRHS) { alert('FAIL:
                   |                            |"'+expr+'" threw exception
                URL|                            |but executed right hand half
                   |                            |of expression') } else {
                   |                            |alert('PASS: handled
                   |                            |correctly') } }
                   |                            |})()}catch(e){alert("Shouldn
                   |                            |'t receive: "+e);}




-- 
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