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 --- lib/url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/url.js') diff --git a/lib/url.js b/lib/url.js index 569733bfc4..0e02dbc131 100644 --- a/lib/url.js +++ b/lib/url.js @@ -23,7 +23,7 @@ const { toASCII } = require('internal/idna'); const { hexTable } = require('internal/querystring'); -const { SafeSet } = require('internal/safe_globals'); +const { SafeSet } = primordials; const { ERR_INVALID_ARG_TYPE -- cgit v1.2.3