summaryrefslogtreecommitdiff
path: root/src/node_constants.cc
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2017-12-13 14:24:34 -0800
committerJames M Snell <jasnell@gmail.com>2017-12-22 12:49:10 -0800
commit6100e12667429acad1827b6d918e512e55a7a6a7 (patch)
tree4fac815add3abf5d54112723798ecc78cb3e06fa /src/node_constants.cc
parent92fc14a4595d460394cad8ad5a091dcc450068a5 (diff)
downloadandroid-node-v8-6100e12667429acad1827b6d918e512e55a7a6a7.tar.gz
android-node-v8-6100e12667429acad1827b6d918e512e55a7a6a7.tar.bz2
android-node-v8-6100e12667429acad1827b6d918e512e55a7a6a7.zip
fs: move type checking to js
PR-URL: https://github.com/nodejs/node/pull/17667 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/node_constants.cc')
-rw-r--r--src/node_constants.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc
index d478d43400..9ecffead53 100644
--- a/src/node_constants.cc
+++ b/src/node_constants.cc
@@ -1028,6 +1028,8 @@ void DefineOpenSSLConstants(Local<Object> target) {
}
void DefineSystemConstants(Local<Object> target) {
+ NODE_DEFINE_CONSTANT(target, UV_FS_SYMLINK_DIR);
+ NODE_DEFINE_CONSTANT(target, UV_FS_SYMLINK_JUNCTION);
// file access modes
NODE_DEFINE_CONSTANT(target, O_RDONLY);
NODE_DEFINE_CONSTANT(target, O_WRONLY);