Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2a3ae16

Browse files
codebyteremarco-ippolito
authored andcommitted
src: expose LookupAndCompile with parameters
PR-URL:#53886Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>Reviewed-By: Chengzhong Wu <legendecas@gmail.com>Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent36170ed commit2a3ae16

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎src/node_builtins.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,14 @@ MaybeLocal<Value> BuiltinLoader::CompileAndCall(Local<Context> context,
490490
return fn->Call(context, undefined, argc, argv);
491491
}
492492

493+
MaybeLocal<Function>BuiltinLoader::LookupAndCompile(
494+
Local<Context> context,
495+
constchar* id,
496+
std::vector<Local<String>>* parameters,
497+
Realm* optional_realm) {
498+
returnLookupAndCompileInternal(context, id, parameters, optional_realm);
499+
}
500+
493501
boolBuiltinLoader::CompileAllBuiltinsAndCopyCodeCache(
494502
Local<Context> context,
495503
const std::vector<std::string>& eager_builtins,

‎src/node_builtins.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ class NODE_EXTERN_PRIVATE BuiltinLoader {
9797
constchar* id,
9898
Realm* optional_realm);
9999

100+
v8::MaybeLocal<v8::Function>LookupAndCompile(
101+
v8::Local<v8::Context> context,
102+
constchar* id,
103+
std::vector<v8::Local<v8::String>>* parameters,
104+
Realm* optional_realm);
105+
100106
v8::MaybeLocal<v8::Value>CompileAndCall(v8::Local<v8::Context> context,
101107
constchar* id,
102108
int argc,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp