Commit 8082c24
src: prevent copying ArrayBufferViewContents
It is error-prone to copy or heap-allocate `ArrayBufferViewContents`,
because you might accidentally cause it to exceed the lifetime of its
argument. Let's make it impossible to do so. Fortunately we were not
doing so anywhere already, so this diff is purely defensive.
Refs: #44079 (comment)
PR-URL: #44091
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>1 parent 6256bd5 commit 8082c24Copy full SHA for 8082c24
File tree
Expand file treeCollapse file tree
1 file changed
+10
-0
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
1 file changed
+10
-0
lines changedOpen diff view settings
Collapse file
+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
498 | 498 | |
499 | 499 | |
500 | 500 | |
| 501 | + |
| 502 | + |
| 503 | + |
501 | 504 | |
502 | 505 | |
503 | 506 | |
| ||
507 | 510 | |
508 | 511 | |
509 | 512 | |
| 513 | + |
| 514 | + |
| 515 | + |
| 516 | + |
| 517 | + |
| 518 | + |
| 519 | + |
510 | 520 | |
511 | 521 | |
512 | 522 | |
|
0 commit comments