GeezerVison is showing github.com — src: expose LookupAndCompile with parameters · nodejs/node@98a7ad2
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/node_builtins.cc +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -489,6 +489,14 @@ MaybeLocal<Value> BuiltinLoader::CompileAndCall(Local<Context> context, |
489 | 489 | return fn->Call(context, undefined, argc, argv); |
490 | 490 | } |
491 | 491 |
|
| 492 | +MaybeLocal<Function> BuiltinLoader::LookupAndCompile( |
| 493 | + Local<Context> context, |
| 494 | + const char* id, |
| 495 | + std::vector<Local<String>>* parameters, |
| 496 | + Realm* optional_realm) { |
| 497 | + return LookupAndCompileInternal(context, id, parameters, optional_realm); |
| 498 | +} |
| 499 | + |
492 | 500 | bool BuiltinLoader::CompileAllBuiltinsAndCopyCodeCache( |
493 | 501 | Local<Context> context, |
494 | 502 | const std::vector<std::string>& eager_builtins, |
|
Collapse file
Copy file name to clipboardExpand all lines: src/node_builtins.h +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -97,6 +97,12 @@ class NODE_EXTERN_PRIVATE BuiltinLoader { |
97 | 97 | const char* id, |
98 | 98 | Realm* optional_realm); |
99 | 99 |
|
| 100 | + v8::MaybeLocal<v8::Function> LookupAndCompile( |
| 101 | + v8::Local<v8::Context> context, |
| 102 | + const char* id, |
| 103 | + std::vector<v8::Local<v8::String>>* parameters, |
| 104 | + Realm* optional_realm); |
| 105 | + |
100 | 106 | v8::MaybeLocal<v8::Value> CompileAndCall(v8::Local<v8::Context> context, |
101 | 107 | const char* id, |
102 | 108 | int argc, |
|