Skip to content

Commit addb726

Browse files
committed
bootstrap: remove unused global parameter in per-context scripts
PR-URL: #44472 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Minwoo Jung <[email protected]>
1 parent 0cdf034 commit addb726

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/api/environment.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ Maybe<bool> InitializePrimordials(Local<Context> context) {
701701
for (const char** module = context_files; *module != nullptr; module++) {
702702
// Arguments must match the parameters specified in
703703
// BuiltinLoader::LookupAndCompile().
704-
Local<Value> arguments[] = {context->Global(), exports, primordials};
704+
Local<Value> arguments[] = {exports, primordials};
705705
MaybeLocal<Function> maybe_fn =
706706
builtins::BuiltinLoader::LookupAndCompile(context, *module, nullptr);
707707
Local<Function> fn;

src/node_builtins.cc

-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ MaybeLocal<Function> BuiltinLoader::LookupAndCompile(
349349
strlen("internal/per_context/")) == 0) {
350350
// internal/per_context/*: global, exports, primordials
351351
parameters = {
352-
FIXED_ONE_BYTE_STRING(isolate, "global"),
353352
FIXED_ONE_BYTE_STRING(isolate, "exports"),
354353
FIXED_ONE_BYTE_STRING(isolate, "primordials"),
355354
};

0 commit comments

Comments
 (0)