From 98ff6b67fd07a8933578a61a41fcd2bd5a1fe80d Mon Sep 17 00:00:00 2001 From: Cameron Fischer Date: Thu, 20 Jul 2023 11:13:36 -0400 Subject: [PATCH] Fixed boot so module line numbers are correct again (#7618) --- boot/boot.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boot/boot.js b/boot/boot.js index 0aa089aa0..cd77ae291 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -596,11 +596,11 @@ $tw.utils.evalGlobal = function(code,context,filename,sandbox,allowGlobals) { // Add the code prologue and epilogue code = [ "(function(" + contextNames.join(",") + ") {", - " (function(){\n" + code + "\n;})();", + " (function(){" + code + "\n;})();\n", (!$tw.browser && sandbox && !allowGlobals) ? globalCheck : "", - " return exports;\n", + "\nreturn exports;\n", "})" - ].join("\n"); + ].join(""); // Compile the code into a function var fn;