• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // This file is part of the embedder test, which is intentionally built without
2 // NODE_WANT_INTERNALS, so we define it here manually.
3 #define NODE_WANT_INTERNALS 1
4 
5 #include "node_native_module_env.h"
6 
7 // The stub here is used when configure is run without `--code-cache-path`.
8 // When --code-cache-path is set this stub will not be used and instead
9 // an implementation will be generated. See tools/code_cache/README.md for
10 // more information.
11 
12 namespace node {
13 namespace native_module {
14 
15 const bool has_code_cache = false;
16 
17 // The generated source code would insert <std::string, UnionString> pairs
18 // into NativeModuleLoader::instance.code_cache_.
InitializeCodeCache()19 void NativeModuleEnv::InitializeCodeCache() {}
20 
21 }  // namespace native_module
22 }  // namespace node
23