[Webkit-unassigned] [Bug 23400] New: eval can return the incorrect result if an exception is thrown and caught

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 16 19:24:17 PST 2009


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

           Summary: eval can return the incorrect result if an exception is
                    thrown and caught
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: chrisb at adobe.com


In the latest nightly ( r40000 ) on the mac, JSCore's eval will return the
incorrect value for the following code:

eval("1; try { 2; throw \"\"; } catch (e){}");

JSCore's eval will return an empty string instead of 1.  Attached is a small
test suite that tests various forms of eval strings.  All of the tests in the
suite pass in FireFox 3 and IE 7.


-- 
Configure bugmail: https://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