Skip to content

Commit bd932a3

Browse files
joyeecheungaddaleax
authored andcommitted
lib: move per_context.js under lib/internal/bootstrap
PR-URL: #26033 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e629afa commit bd932a3

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

lib/internal/bootstrap/cache.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ const cannotBeRequired = [
1818
'internal/v8_prof_polyfill',
1919
'internal/v8_prof_processor',
2020

21-
'internal/per_context',
22-
2321
'internal/test/binding',
2422

23+
'internal/bootstrap/context',
2524
'internal/bootstrap/primordials',
2625
'internal/bootstrap/loaders',
2726
'internal/bootstrap/node'
File renamed without changes.

node.gyp

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
'node_lib_target_name%': 'node_lib',
2727
'node_intermediate_lib_type%': 'static_library',
2828
'library_files': [
29-
'lib/internal/per_context.js',
29+
'lib/internal/bootstrap/context.js',
3030
'lib/internal/bootstrap/primordials.js',
3131
'lib/internal/bootstrap/cache.js',
3232
'lib/internal/bootstrap/loaders.js',

src/api/environment.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@ Local<Context> NewContext(Isolate* isolate,
183183
True(isolate));
184184

185185
{
186-
// Run lib/internal/per_context.js
186+
// Run lib/internal/bootstrap/context.js
187187
Context::Scope context_scope(context);
188188

189189
std::vector<Local<String>> parameters = {
190190
FIXED_ONE_BYTE_STRING(isolate, "global")};
191191
Local<Value> arguments[] = {context->Global()};
192192
MaybeLocal<Function> maybe_fn =
193193
per_process::native_module_loader.LookupAndCompile(
194-
context, "internal/per_context", &parameters, nullptr);
194+
context, "internal/bootstrap/context", &parameters, nullptr);
195195
if (maybe_fn.IsEmpty()) {
196196
return Local<Context>();
197197
}

0 commit comments

Comments
 (0)