Initial approach

This commit is contained in:
Jeremy Ruston 2023-07-29 17:05:43 +01:00
parent c1ff85c205
commit 71c76c233c
1 changed files with 1 additions and 2 deletions

View File

@ -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');