diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-10-11 15:13:19 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-10-14 20:08:19 +0200 |
commit | 9fd6122659c4067b0d8bd2c590f4ba01b48c93a3 (patch) | |
tree | 89cdbb73d84f5ae87e1399f95aa0fba392b43f7f /node.gyp | |
parent | ef1645e2b3f609492af7f25e4468db9b7801f4aa (diff) | |
download | ios-node-v8-9fd6122659c4067b0d8bd2c590f4ba01b48c93a3.tar.gz ios-node-v8-9fd6122659c4067b0d8bd2c590f4ba01b48c93a3.tar.bz2 ios-node-v8-9fd6122659c4067b0d8bd2c590f4ba01b48c93a3.zip |
src: add embedding helpers to reduce boilerplate code
Provide helpers for a) spinning the event loop and
b) setting up and tearing down the objects involved in a single
Node.js instance, as they would typically be used.
The former helper is also usable inside Node.js itself,
for both Worker and main threads.
PR-URL: https://github.com/nodejs/node/pull/35597
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -575,6 +575,7 @@ 'sources': [ 'src/api/async_resource.cc', 'src/api/callback.cc', + 'src/api/embed_helpers.cc', 'src/api/encoding.cc', 'src/api/environment.cc', 'src/api/exceptions.cc', |