diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index 500199bf19e1db..0b74752ac0d888 100644 --- a/lib/internal/bootstrap/pre_execution.js +++ b/lib/internal/bootstrap/pre_execution.js @@ -437,8 +437,8 @@ function initializeClusterIPC() { function initializePolicy() { const experimentalPolicy = getOptionValue('[has_experimental_policy_string]') ? - getOptionValue('--experimental-policy') - : null; + getOptionValue('--experimental-policy') : + null; if (experimentalPolicy) { process.emitWarning('Policies are experimental.', 'ExperimentalWarning'); diff --git a/lib/internal/modules/package_json_reader.js b/lib/internal/modules/package_json_reader.js index 045eafb4ef3979..230306d61f534a 100644 --- a/lib/internal/modules/package_json_reader.js +++ b/lib/internal/modules/package_json_reader.js @@ -25,7 +25,7 @@ function read(jsonPath) { const result = { string, containsKeys }; if (string !== undefined) { if (manifest === undefined) { - manifest = policy.manifest + manifest = policy.manifest; } if (manifest !== null) { const jsonURL = pathToFileURL(jsonPath); diff --git a/lib/internal/policy/sri.js b/lib/internal/policy/sri.js index 08a9f4d4cafc42..c8ed4066625af8 100644 --- a/lib/internal/policy/sri.js +++ b/lib/internal/policy/sri.js @@ -35,7 +35,7 @@ const BufferFrom = require('buffer').Buffer.from; /** * Strictly parses an SRI string and returns all found entries - * @param {string} str + * @param {string} str * @returns {Array<{algorithm:string, value:string, options: string | null}>} */ const parse = (str) => { diff --git a/lib/internal/process/policy.js b/lib/internal/process/policy.js index b4f005603f8468..5b122fb6fa1d0c 100644 --- a/lib/internal/process/policy.js +++ b/lib/internal/process/policy.js @@ -27,7 +27,7 @@ module.exports = ObjectFreeze({ __proto__: null, /** * @param {string | null} src null to not use a policy - * @param {string} url + * @param {string} url * @returns {void} */ setup(src, url) {