mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-02-10 04:00:22 +00:00
Compare commits
1 Commits
background
...
fix-global
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
71c76c233c |
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user