Bug 20094 - JSC shell does not clear exceptions after it executes toString on an expression
Summary: JSC shell does not clear exceptions after it executes toString on an expression
Status: RESOLVED DUPLICATE of bug 20093
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2008-07-18 05:03 PDT by Oliver Hunt
Modified: 2008-07-18 07:24 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 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
Comment 1 Alexey Proskuryakov 2008-07-18 07:24:14 PDT

*** This bug has been marked as a duplicate of 20093 ***