diff options
author | Bradley Farias <bradley.meck@gmail.com> | 2017-10-03 10:07:48 -0500 |
---|---|---|
committer | Bradley Farias <bradley.meck@gmail.com> | 2017-10-12 09:13:29 -0500 |
commit | a36aa049c857d87580548d096743f0acf28d231b (patch) | |
tree | a24545ea69d8d1d859893eddd1623ffe67a685d7 /src/env.h | |
parent | 75d41cf531c19496c854acf65d48d9c8421907bc (diff) | |
download | android-node-v8-a36aa049c857d87580548d096743f0acf28d231b.tar.gz android-node-v8-a36aa049c857d87580548d096743f0acf28d231b.tar.bz2 android-node-v8-a36aa049c857d87580548d096743f0acf28d231b.zip |
src: add internalBindings for binding isolation
This commit adds a method to internal/process that allows access to
bindings that are not intended to be used by user code. It has a
separate cache object and modlist in order to avoid collisions.
You can use NODE_MODULE_CONTEXT_AWARE_INTERNAL to register a C++
module as an internal.
PR-URL: https://github.com/nodejs/node/pull/15759
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -302,6 +302,7 @@ class ModuleWrap; V(async_hooks_after_function, v8::Function) \ V(async_hooks_promise_resolve_function, v8::Function) \ V(binding_cache_object, v8::Object) \ + V(internal_binding_cache_object, v8::Object) \ V(buffer_prototype_object, v8::Object) \ V(context, v8::Context) \ V(domain_array, v8::Array) \ |