From d0da1ef9d9274b96ec514bd3e2b939653a2508ed Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 31 Jul 2023 11:50:58 +0100 Subject: [PATCH] Fix error "Global assignment is not allowed within modules on node" (#7648) --- boot/boot.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/boot/boot.js b/boot/boot.js index cd77ae291..3547ee880 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -575,9 +575,8 @@ var globalCheck =[ " configurable: true", " });", " if(Object.keys(__temp__).length){", - " console.log(Object.keys(__temp__));", + " console.log(\"Warning: Global assignment detected\",Object.keys(__temp__));", " delete Object.prototype.__temp__;", - " throw \"Global assignment is not allowed within modules on node.\";", " }", " delete Object.prototype.__temp__;", ].join('\n');