diff options
author | Joyee Cheung <joyeec9h3@gmail.com> | 2021-01-28 18:37:21 +0300 |
---|---|---|
committer | Joyee Cheung <joyeec9h3@gmail.com> | 2021-02-08 09:00:34 +0300 |
commit | 7e6bb66ef00dbb68dfc8060fbf693b6d05c52fbf (patch) | |
tree | 156cd3ea0cf32eed7f3b5a8eca46a2a76092982a /node.gyp | |
parent | 1b7531cdeb46db2c315015f9138d95585b1064a9 (diff) |
src: refactor v8 binding
1. Put the v8 binding data class into a header so we can reuse
the class definition during deserialization.
2. Put the v8 binding code into node::v8_utils namespace for
clarity.
3. Move the binding data property initialization into its
constructor so that we can reuse it during deserialization
4. Reorder the v8 binding initialization so that we don't
unnecessarily initialize the properties in a loop
PR-URL: https://github.com/nodejs/node/pull/37112
Refs: https://github.com/nodejs/node/pull/36943
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -746,6 +746,7 @@ 'src/node_union_bytes.h', 'src/node_url.h', 'src/node_version.h', + 'src/node_v8.h', 'src/node_v8_platform-inl.h', 'src/node_wasi.h', 'src/node_watchdog.h', |