diff options
author | Anna Henningsen <anna@addaleax.net> | 2018-01-27 22:01:32 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-03-05 17:41:26 +0000 |
commit | b20af8088a4d5cccb1901d42107f6d9ca82d306f (patch) | |
tree | d443fa727be877dc7ad6e4112503944a8e674490 /src/node_internals.h | |
parent | bd6e0be0dfbbf6d10f1f054c43b0b82f25c60b16 (diff) | |
download | android-node-v8-b20af8088a4d5cccb1901d42107f6d9ca82d306f.tar.gz android-node-v8-b20af8088a4d5cccb1901d42107f6d9ca82d306f.tar.bz2 android-node-v8-b20af8088a4d5cccb1901d42107f6d9ca82d306f.zip |
util: introduce `util.types.is[…]` type checks
Provide public APIs for native typechecking that is actually useful.
The motivation for this is providing alternatives to userland
modules that would currently rely on `process.binding('util')`.
PR-URL: https://github.com/nodejs/node/pull/18415
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index 140826bb7c..43c2b5f112 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -126,6 +126,7 @@ struct sockaddr; V(timer_wrap) \ V(trace_events) \ V(tty_wrap) \ + V(types) \ V(udp_wrap) \ V(url) \ V(util) \ |