Bug 281831
| Summary: | Add check to makeUniqueRef<T>() to make sure T is not ref-counted | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
| Component: | Web Template Framework | Assignee: | Chris Dumez <cdumez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Chris Dumez
Add check to makeUniqueRef<T>() to make sure T is not ref-counted, similarly to what we already to for makeUnique<T>(). Introduce a makeUniqueRefWithoutRefCountedCheck<T>() to bypass the check (in case of ref-counting forwarding).
Also fix the bugs that were found by the new check.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Dumez
Pull request: https://github.com/WebKit/WebKit/pull/35497
EWS
Committed 285507@main (bb010d9a1457): <https://commits.webkit.org/285507@main>
Reviewed commits have been landed. Closing PR #35497 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/138319519>