mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-27 14:48:19 +00:00
Initial approach
This commit is contained in:
parent
c1ff85c205
commit
71c76c233c
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user