mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
lib: move per_context.js under lib/internal/bootstrap
PR-URL: https://github.com/nodejs/node/pull/26033 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
4 files changed
+4
-5
No files matched your search
@@ -18,10 +18,9 @@ const cannotBeRequired = [
|
||||
'internal/v8_prof_polyfill',
|
||||
'internal/v8_prof_processor',
|
||||
|
||||
'internal/per_context',
|
||||
|
||||
'internal/test/binding',
|
||||
|
||||
'internal/bootstrap/context',
|
||||
'internal/bootstrap/primordials',
|
||||
'internal/bootstrap/loaders',
|
||||
'internal/bootstrap/node'
|
||||
|
||||
File renamed without changes.
@@ -25,7 +25,7 @@
|
||||
'node_lib_target_name%': 'node_lib',
|
||||
'node_intermediate_lib_type%': 'static_library',
|
||||
'library_files': [
|
||||
'lib/internal/per_context.js',
|
||||
'lib/internal/bootstrap/context.js',
|
||||
'lib/internal/bootstrap/primordials.js',
|
||||
'lib/internal/bootstrap/cache.js',
|
||||
'lib/internal/bootstrap/loaders.js',
|
||||
|
||||
@@ -192,7 +192,7 @@ Local<Context> NewContext(Isolate* isolate,
|
||||
True(isolate));
|
||||
|
||||
{
|
||||
// Run lib/internal/per_context.js
|
||||
// Run lib/internal/bootstrap/context.js
|
||||
Context::Scope context_scope(context);
|
||||
|
||||
std::vector<Local<String>> parameters = {
|
||||
@@ -200,7 +200,7 @@ Local<Context> NewContext(Isolate* isolate,
|
||||
Local<Value> arguments[] = {context->Global()};
|
||||
MaybeLocal<Function> maybe_fn =
|
||||
per_process::native_module_loader.LookupAndCompile(
|
||||
context, "internal/per_context", ¶meters, nullptr);
|
||||
context, "internal/bootstrap/context", ¶meters, nullptr);
|
||||
if (maybe_fn.IsEmpty()) {
|
||||
return Local<Context>();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user