| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b5cd0eb commit d1c6f86
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,6 +17,7 @@ using v8::FunctionCallbackInfo; | |||
| 17 | 17 | using v8::IntegrityLevel; | |
| 18 | 18 | using v8::Isolate; | |
| 19 | 19 | using v8::Local; | |
| 20 | + using v8::LocalVector; | ||
| 20 | 21 | using v8::MaybeLocal; | |
| 21 | 22 | using v8::Name; | |
| 22 | 23 | using v8::None; | |
@@ -268,7 +269,7 @@ void BuiltinLoader::AddExternalizedBuiltin(const char* id, | |||
| 268 | 269 | MaybeLocal<Function> BuiltinLoader::LookupAndCompileInternal( | |
| 269 | 270 | Local<Context> context, | |
| 270 | 271 | const char* id, | |
| 271 | - std::vector<Local<String>>* parameters, | ||
| 272 | + LocalVector<String>* parameters, | ||
| 272 | 273 | Realm* optional_realm) { | |
| 273 | 274 | Isolate* isolate = context->GetIsolate(); | |
| 274 | 275 | EscapableHandleScope scope(isolate); | |
@@ -392,8 +393,8 @@ void BuiltinLoader::SaveCodeCache(const char* id, Local<Function> fun) { | |||
| 392 | 393 | MaybeLocal<Function> BuiltinLoader::LookupAndCompile(Local<Context> context, | |
| 393 | 394 | const char* id, | |
| 394 | 395 | Realm* optional_realm) { | |
| 395 | - std::vector<Local<String>> parameters; | ||
| 396 | 396 | Isolate* isolate = context->GetIsolate(); | |
| 397 | + LocalVector<String> parameters(isolate); | ||
| 397 | 398 | // Detects parameters of the scripts based on module ids. | |
| 398 | 399 | // internal/bootstrap/realm: process, getLinkedBinding, | |
| 399 | 400 | // getInternalBinding, primordials | |
@@ -507,7 +508,7 @@ MaybeLocal<Value> BuiltinLoader::CompileAndCall(Local<Context> context, | |||
| 507 | 508 | MaybeLocal<Function> BuiltinLoader::LookupAndCompile( | |
| 508 | 509 | Local<Context> context, | |
| 509 | 510 | const char* id, | |
| 510 | - std::vector<Local<String>>* parameters, | ||
| 511 | + LocalVector<String>* parameters, | ||
| 511 | 512 | Realm* optional_realm) { | |
| 512 | 513 | return LookupAndCompileInternal(context, id, parameters, optional_realm); | |
| 513 | 514 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -100,7 +100,7 @@ class NODE_EXTERN_PRIVATE BuiltinLoader { | |||
| 100 | 100 | v8::MaybeLocal<v8::Function> LookupAndCompile( | |
| 101 | 101 | v8::Local<v8::Context> context, | |
| 102 | 102 | const char* id, | |
| 103 | - std::vector<v8::Local<v8::String>>* parameters, | ||
| 103 | + v8::LocalVector<v8::String>* parameters, | ||
| 104 | 104 | Realm* optional_realm); | |
| 105 | 105 | ||
| 106 | 106 | v8::MaybeLocal<v8::Value> CompileAndCall(v8::Local<v8::Context> context, | |
@@ -156,7 +156,7 @@ class NODE_EXTERN_PRIVATE BuiltinLoader { | |||
| 156 | 156 | v8::MaybeLocal<v8::Function> LookupAndCompileInternal( | |
| 157 | 157 | v8::Local<v8::Context> context, | |
| 158 | 158 | const char* id, | |
| 159 | - std::vector<v8::Local<v8::String>>* parameters, | ||
| 159 | + v8::LocalVector<v8::String>* parameters, | ||
| 160 | 160 | Realm* optional_realm); | |
| 161 | 161 | void SaveCodeCache(const char* id, v8::Local<v8::Function> fn); | |
| 162 | 162 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments