mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
src: add LoadEnvironment() variant taking a string
Allow passing a string as the main module rather than using the callback variant. PR-URL: https://github.com/nodejs/node/pull/30467 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
10 files changed
+94
-2
No files matched your search
@@ -47,6 +47,8 @@ class NativeModuleLoader {
|
||||
UnionBytes GetConfig(); // Return data for config.gypi
|
||||
|
||||
bool Exists(const char* id);
|
||||
bool Add(const char* id, const UnionBytes& source);
|
||||
|
||||
v8::Local<v8::Object> GetSourceObject(v8::Local<v8::Context> context);
|
||||
v8::Local<v8::String> GetConfigString(v8::Isolate* isolate);
|
||||
std::vector<std::string> GetModuleIds();
|
||||
|
||||
Reference in new issue
Block a user