From 39d922123c02aecc2e289a08e3bdb9515a7b193a Mon Sep 17 00:00:00 2001 From: Joyee Cheung Date: Wed, 30 Jan 2019 22:21:07 +0800 Subject: lib: save primordials during bootstrap and use it in builtins This patches changes the `safe_globals` internal module into a script that gets run during bootstrap and saves JavaScript builtins (primordials) into an object that is available for all other builtin modules to access lexically later. PR-URL: https://github.com/nodejs/node/pull/25816 Refs: https://github.com/nodejs/node/issues/18795 Reviewed-By: Bradley Farias Reviewed-By: Anna Henningsen Reviewed-By: Gus Caplan --- node.gyp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node.gyp') diff --git a/node.gyp b/node.gyp index c89f862c42..6b7cbe26f3 100644 --- a/node.gyp +++ b/node.gyp @@ -26,6 +26,7 @@ 'node_intermediate_lib_type%': 'static_library', 'library_files': [ 'lib/internal/per_context.js', + 'lib/internal/bootstrap/primordials.js', 'lib/internal/bootstrap/cache.js', 'lib/internal/bootstrap/loaders.js', 'lib/internal/bootstrap/node.js', @@ -149,7 +150,6 @@ 'lib/internal/modules/esm/module_job.js', 'lib/internal/modules/esm/module_map.js', 'lib/internal/modules/esm/translators.js', - 'lib/internal/safe_globals.js', 'lib/internal/net.js', 'lib/internal/options.js', 'lib/internal/policy/manifest.js', -- cgit v1.2.3