[Webkit-unassigned] [Bug 155251] New: Function parameter gets optimized away when used as the default of a named parameter only
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 9 13:00:18 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=155251
Bug ID: 155251
Summary: Function parameter gets optimized away when used as
the default of a named parameter only
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Macintosh
OS: OS X 10.11
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: stefan at sechel.de
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160309/2c0d8d9e/attachment.html>
More information about the webkit-unassigned
mailing list