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
Radar WebKit Bug Importer
Comment 1 2015-08-19 10:51:19 PDT
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
Note You need to log in before you can comment on or make changes to this bug.