WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
155251
Function parameter gets optimized away when used as the default of a named parameter only
https://bugs.webkit.org/show_bug.cgi?id=155251
Summary
Function parameter gets optimized away when used as the default of a named pa...
Stefan Sechelmann
Reported
2016-03-09 13:00:18 PST
Define the following function: f = function(a){ (function({aa = a}){ console.log('result: ' + aa); })({}); } -------- f(42) expected: result: 42 got: no log at all -------- f(42) f(42) expected: result: 42 result: 42 got: result: 42
Attachments
Add attachment
proposed patch, testcase, etc.
Stefan Sechelmann
Comment 1
2017-09-22 02:37:58 PDT
Seems to work now.
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