Bug 247533 - map and compactMap functions sometimes copy the passed in collection before mapping it to a vector
Summary: map and compactMap functions sometimes copy the passed in collection before m...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Darin Adler
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-05 12:42 PDT by Darin Adler
Modified: 2022-11-05 22:46 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 2022-11-05 12:42:57 PDT
Noticed by code inspection that the map and compactMap functions are copying the collections passed to them. Add a test for this and fix it.
Comment 1 Radar WebKit Bug Importer 2022-11-05 12:45:01 PDT
<rdar://problem/102000000>
Comment 2 Darin Adler 2022-11-05 12:49:13 PDT
Pull request: https://github.com/WebKit/WebKit/pull/6178
Comment 3 EWS 2022-11-05 22:46:14 PDT
Committed 256373@main (7ea0a5456640): <https://commits.webkit.org/256373@main>

Reviewed commits have been landed. Closing PR #6178 and removing active labels.