From f16b38e71d0345fa25d616550554ef7ed5370866 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Mon, 6 Mar 2023 11:47:09 +0100 Subject: [PATCH] esm: fix import assertion warning Refs: https://github.com/nodejs/node/pull/46901#discussion_r1122242913 --- lib/internal/modules/esm/assert.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/internal/modules/esm/assert.js b/lib/internal/modules/esm/assert.js index 3437aa1a61b86f..45df6781d49497 100644 --- a/lib/internal/modules/esm/assert.js +++ b/lib/internal/modules/esm/assert.js @@ -61,8 +61,8 @@ function validateAssertions(url, format, if (!alreadyWarned && ObjectKeys(importAssertions).length !== 0) { alreadyWarned = true; process.emitWarning( - 'Import assertions are not a stable feature of the JavaScript language, ' + - 'avoid relying on their current behavior and syntax as those might change ' + + 'Import assertions are not a stable feature of the JavaScript language. ' + + 'Avoid relying on their current behavior and syntax as those might change ' + 'in a future version of Node.js.', 'ExperimentalWarning', );