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)

43 Branch
defect
Not set
normal

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.
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.