mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-26 19:47:20 +00:00
Fixed boot so module line numbers are correct again (#7618)
This commit is contained in:
parent
9b2af13596
commit
98ff6b67fd
@ -596,11 +596,11 @@ $tw.utils.evalGlobal = function(code,context,filename,sandbox,allowGlobals) {
|
|||||||
// Add the code prologue and epilogue
|
// Add the code prologue and epilogue
|
||||||
code = [
|
code = [
|
||||||
"(function(" + contextNames.join(",") + ") {",
|
"(function(" + contextNames.join(",") + ") {",
|
||||||
" (function(){\n" + code + "\n;})();",
|
" (function(){" + code + "\n;})();\n",
|
||||||
(!$tw.browser && sandbox && !allowGlobals) ? globalCheck : "",
|
(!$tw.browser && sandbox && !allowGlobals) ? globalCheck : "",
|
||||||
" return exports;\n",
|
"\nreturn exports;\n",
|
||||||
"})"
|
"})"
|
||||||
].join("\n");
|
].join("");
|
||||||
|
|
||||||
// Compile the code into a function
|
// Compile the code into a function
|
||||||
var fn;
|
var fn;
|
||||||
|
Loading…
Reference in New Issue
Block a user