Bug 147105

Summary: REGRESSION (beween r186927 and r186963): defining a strict arrow function will cause a crash
Product: WebKit Reporter: Claude Pache <claude.pache>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Major CC: saam, ysuzuki
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
testcase: defining strict arrow function (will crash on load) none

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.