Bug 20094

Summary: JSC shell does not clear exceptions after it executes toString on an expression
Product: WebKit Reporter: Oliver Hunt <oliver>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: sam
Priority: P2 Keywords: HasReduction
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   

Oliver Hunt
Reported 2008-07-18 05:03:20 PDT
The JSC shell doesn't check for toString on the result of an expression throwing, so it will eventually result in incorrect behaviour in some cases. Trivial reproduction: 1. Start jsc 2. enter eval({toString:function(){throw{};}}); 3. goto 2
Attachments
Alexey Proskuryakov
Comment 1 2008-07-18 07:24:14 PDT
*** This bug has been marked as a duplicate of 20093 ***
Note You need to log in before you can comment on or make changes to this bug.