mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-25 06:35:46 +00:00
Fix error "Global assignment is not allowed within modules on node" (#7648)
This commit is contained in:
@@ -575,9 +575,8 @@ var globalCheck =[
|
|||||||
" configurable: true",
|
" configurable: true",
|
||||||
" });",
|
" });",
|
||||||
" if(Object.keys(__temp__).length){",
|
" if(Object.keys(__temp__).length){",
|
||||||
" console.log(Object.keys(__temp__));",
|
" console.log(\"Warning: Global assignment detected\",Object.keys(__temp__));",
|
||||||
" delete Object.prototype.__temp__;",
|
" delete Object.prototype.__temp__;",
|
||||||
" throw \"Global assignment is not allowed within modules on node.\";",
|
|
||||||
" }",
|
" }",
|
||||||
" delete Object.prototype.__temp__;",
|
" delete Object.prototype.__temp__;",
|
||||||
].join('\n');
|
].join('\n');
|
||||||
|
|||||||
Reference in New Issue
Block a user