Bug 146555 - Relax builtin JS restriction about try-catch
Summary: Relax builtin JS restriction about try-catch
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords:
Depends on:
Blocks: 146229
  Show dependency treegraph
 
Reported: 2015-07-02 12:26 PDT by Yusuke Suzuki
Modified: 2015-07-03 10:39 PDT (History)
8 users (show)

See Also:


Attachments
Patch (2.26 KB, patch)
2015-07-02 21:33 PDT, Yusuke Suzuki
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2015-07-02 12:26:09 PDT
try-catch cannot be used in builtin JS code.
But relaxing this restriction is useful for writing Promise function in JS.
Comment 1 Yusuke Suzuki 2015-07-02 21:33:27 PDT
Created attachment 256070 [details]
Patch
Comment 2 Yusuke Suzuki 2015-07-03 09:30:47 PDT
Could anyone take a look?
Comment 3 Yusuke Suzuki 2015-07-03 09:48:14 PDT
Comment on attachment 256070 [details]
Patch

Thanks for your review!
Comment 4 WebKit Commit Bot 2015-07-03 10:39:20 PDT
Comment on attachment 256070 [details]
Patch

Clearing flags on attachment: 256070

Committed r186260: <http://trac.webkit.org/changeset/186260>
Comment 5 WebKit Commit Bot 2015-07-03 10:39:24 PDT
All reviewed patches have been landed.  Closing bug.