Bug 147105 - REGRESSION (beween r186927 and r186963): defining a strict arrow function will cause a crash
Summary: REGRESSION (beween r186927 and r186963): defining a strict arrow function wil...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Major
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-20 03:31 PDT by Claude Pache
Modified: 2015-07-20 08:18 PDT (History)
2 users (show)

See Also:


Attachments
testcase: defining strict arrow function (will crash on load) (58 bytes, text/html)
2015-07-20 03:31 PDT, Claude Pache
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Claude Pache 2015-07-20 03:31:22 PDT
Created attachment 257086 [details]
testcase: defining strict arrow function (will crash on load)

Running the following JS code will produce a crash:

    () => { 'use strict' }

* r186927: no crash
* r186963 or later: crash
Comment 1 Claude Pache 2015-07-20 03:55:01 PDT
Revision 186959 https://trac.webkit.org/changeset/186959 made changes on how functions are parsed. Is it related to this bug?
Comment 2 Saam Barati 2015-07-20 07:40:43 PDT
I fixed this yesterday in:
http://trac.webkit.org/changeset/187014
Comment 3 Claude Pache 2015-07-20 08:18:54 PDT
Verified as fixed in latest nightly (r187018), indeed.