Skip to content

Commit 68afae2

Browse files
committed
lib: move per_context.js under lib/internal/bootstrap
PR-URL: nodejs#26033 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 771b290 commit 68afae2

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

lib/internal/bootstrap/cache.js

Lines changed: 1 addition & 2 deletions
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'

node.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
'node_lib_target_name%': 'node_lib',
2626
'node_intermediate_lib_type%': 'static_library',
2727
'library_files': [
28-
'lib/internal/per_context.js',
28+
'lib/internal/bootstrap/context.js',
2929
'lib/internal/bootstrap/primordials.js',
3030
'lib/internal/bootstrap/cache.js',
3131
'lib/internal/bootstrap/loaders.js',

src/api/environment.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,15 +192,15 @@ Local<Context> NewContext(Isolate* isolate,
192192
True(isolate));
193193

194194
{
195-
// Run lib/internal/per_context.js
195+
// Run lib/internal/bootstrap/context.js
196196
Context::Scope context_scope(context);
197197

198198
std::vector<Local<String>> parameters = {
199199
FIXED_ONE_BYTE_STRING(isolate, "global")};
200200
Local<Value> arguments[] = {context->Global()};
201201
MaybeLocal<Function> maybe_fn =
202202
per_process::native_module_loader.LookupAndCompile(
203-
context, "internal/per_context", &parameters, nullptr);
203+
context, "internal/bootstrap/context", &parameters, nullptr);
204204
if (maybe_fn.IsEmpty()) {
205205
return Local<Context>();
206206
}

0 commit comments

Comments
 (0)