Commit b9c057c
tools,src: forbid usage of v8::Persistent
`v8::Persistent` comes with the surprising catch that it requires
manual cleanup. `v8::Global` doesn’t, making it easier to use,
and additionally provides move semantics. New code should always
use `v8::Global`.
PR-URL: #31018
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>1 parent ea5be29 commit b9c057cCopy full SHA for b9c057c
File tree
Expand file treeCollapse file tree
2 files changed
+28
-0
lines changedOpen diff view settings
Filter options
- src
- tools
Expand file treeCollapse file tree
2 files changed
+28
-0
lines changedOpen diff view settings
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
| 68 | + |
68 | 69 | |
69 | 70 | |
70 | 71 | |
| ||
122 | 123 | |
123 | 124 | |
124 | 125 | |
| 126 | + |
125 | 127 | |
126 | 128 | |
127 | 129 | |
|
Collapse file
+26Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
321 | 321 | |
322 | 322 | |
323 | 323 | |
| 324 | + |
324 | 325 | |
325 | 326 | |
326 | 327 | |
| ||
627 | 628 | |
628 | 629 | |
629 | 630 | |
| 631 | + |
| 632 | + |
630 | 633 | |
631 | 634 | |
632 | 635 | |
| ||
4547 | 4550 | |
4548 | 4551 | |
4549 | 4552 | |
| 4553 | + |
| 4554 | + |
| 4555 | + |
| 4556 | + |
| 4557 | + |
| 4558 | + |
| 4559 | + |
| 4560 | + |
| 4561 | + |
| 4562 | + |
| 4563 | + |
| 4564 | + |
| 4565 | + |
| 4566 | + |
| 4567 | + |
| 4568 | + |
| 4569 | + |
| 4570 | + |
| 4571 | + |
| 4572 | + |
| 4573 | + |
| 4574 | + |
4550 | 4575 | |
4551 | 4576 | |
4552 | 4577 | |
| ||
4723 | 4748 | |
4724 | 4749 | |
4725 | 4750 | |
| 4751 | + |
4726 | 4752 | |
4727 | 4753 | |
4728 | 4754 | |
|
0 commit comments