WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
148179
Named IIFE function + ES6 default parameters crashes WebKit
https://bugs.webkit.org/show_bug.cgi?id=148179
Summary
Named IIFE function + ES6 default parameters crashes WebKit
Tobias Reiss
Reported
2015-08-19 10:50:20 PDT
* Version WebKit nightly
r188633
* SUMMARY Executing a named IIFE function that uses ES6 default parameters in the console causes a crash. * STEPS TO REPRODUCE 1. Open Console 2. Execute the following snippet (function fn(oo = 'test') { console.log(oo); })() => Crashes the Browser * EXPECTATION Console prints "test" Interestingly an anonymous function works: (function(oo = 'test') { console.log(oo); })()
Attachments
Test case
(171 bytes, text/html)
2015-08-19 10:58 PDT
,
Blaze Burg
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-08-19 10:51:19 PDT
<
rdar://problem/22345949
>
Blaze Burg
Comment 2
2015-08-19 10:58:32 PDT
Created
attachment 259378
[details]
Test case This is not an inspector bug.
Saam Barati
Comment 3
2015-08-26 10:54:08 PDT
this was fixed in:
http://trac.webkit.org/changeset/188926
for bug:
https://bugs.webkit.org/show_bug.cgi?id=148400
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug