Open Bug 601662 Opened 15 years ago Updated 2 years ago

Optimize away return array object when function returning an array has it immediately assigned to destructuring assignment

Categories

(Core :: JavaScript Engine, enhancement, P3)

x86
macOS
enhancement

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

References

(Blocks 1 open bug)

Details

I'm looking at things like: function f() { return [1, 2]; } var [a, b] = f();
(Thanks for the citation, cdleary!) /be
Assignee: general → nobody
Severity: normal → S3
Blocks: sm-js-perf
Type: defect → enhancement
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.