Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRefael Ackermann <refack@gmail.com>2019-04-19 16:43:02 +0300
committerRefael Ackermann <refack@gmail.com>2019-04-22 21:48:50 +0300
commit5aaf666b3b82a66485bea6a6b59fbfc838192e2f (patch)
tree7311dbad032093a9bd0a4a7cb8b5f7678a60cf43 /src/node_config.cc
parent49d3d11ba7975b2c6df4ecab55b4619da46fcb95 (diff)
build: improve embedded code-cache detection
PR-URL: https://github.com/nodejs/node/pull/27311 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'src/node_config.cc')
-rw-r--r--src/node_config.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/node_config.cc b/src/node_config.cc
index c3c962bd886..389bd5aa567 100644
--- a/src/node_config.cc
+++ b/src/node_config.cc
@@ -1,6 +1,7 @@
#include "env-inl.h"
#include "node.h"
#include "node_i18n.h"
+#include "node_native_module_env.h"
#include "node_options.h"
#include "util-inl.h"
@@ -73,11 +74,14 @@ static void Initialize(Local<Object> target,
READONLY_PROPERTY(target,
"bits",
- Number::New(env->isolate(), 8 * sizeof(intptr_t)));
+ Number::New(isolate, 8 * sizeof(intptr_t)));
#if defined HAVE_DTRACE || defined HAVE_ETW
READONLY_TRUE_PROPERTY(target, "hasDtrace");
#endif
+
+ READONLY_PROPERTY(target, "hasCachedBuiltins",
+ v8::Boolean::New(isolate, native_module::has_code_cache));
} // InitConfig
} // namespace node