kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Improve compatibility with JS modules
If a module ended with a single line comment `\\` then the appended `;})();` was being ignored and eaten up as part of the comment.print-window-tiddler
rodzic
4134392841
commit
a614c0d543
|
@ -413,7 +413,7 @@ $tw.utils.evalGlobal = function(code,context,filename) {
|
|||
contextValues.push(value);
|
||||
});
|
||||
// Add the code prologue and epilogue
|
||||
code = "(function(" + contextNames.join(",") + ") {(function(){\n" + code + ";})();\nreturn exports;\n})\n";
|
||||
code = "(function(" + contextNames.join(",") + ") {(function(){\n" + code + "\n;})();\nreturn exports;\n})\n";
|
||||
// Compile the code into a function
|
||||
var fn;
|
||||
if($tw.browser) {
|
||||
|
|
Ładowanie…
Reference in New Issue