diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-04-17 23:16:22 +0200 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2019-04-30 08:17:33 +0200 |
commit | 33702913b1136607b1f0859375f3d2fa939fbb29 (patch) | |
tree | 48e8e5ebc02cb0ab4de18404684f7a9fc3cf6799 /node.gyp | |
parent | eeab007b25bc7ac2225e49c13db6c7ccf1975b53 (diff) | |
download | android-node-v8-33702913b1136607b1f0859375f3d2fa939fbb29.tar.gz android-node-v8-33702913b1136607b1f0859375f3d2fa939fbb29.tar.bz2 android-node-v8-33702913b1136607b1f0859375f3d2fa939fbb29.zip |
src: prefer v8::Global over node::Persistent
`v8::Global` is essentially a nicer variant of `node::Persistent` that,
in addition to reset-on-destroy, also implements move semantics.
This commit makes the necessary replacements, removes
`node::Persistent` and (now-)unnecessary inclusions of the
`node_persistent.h` header, and makes some of the functions that
take Persistents as arguments more generic so that they work with all
`v8::PersistentBase` flavours.
PR-URL: https://github.com/nodejs/node/pull/27287
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -606,7 +606,6 @@ 'src/node_options-inl.h', 'src/node_perf.h', 'src/node_perf_common.h', - 'src/node_persistent.h', 'src/node_platform.h', 'src/node_process.h', 'src/node_revert.h', |