Closed
Bug 1213254
Opened 9 years ago
Closed 9 years ago
var bindings in functions with non-simple parameter lists should be separate
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1022967
People
(Reporter: mgol, Unassigned)
Details
var bindings in functions with non-simple parameter lists should be separate, although they are initialized with the proper parameter value.
This was originally noticed in Chrome at https://code.google.com/p/v8/issues/detail?id=811#c57
The code:
(function(x, f = () => x) { var x; var y = x; x = 2; return [x, y, f()] })(1)
should return [2, 1, 1] not [2, 1, 2] as Firefox currently does.
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•