There was an error while loading. Please reload this page.
1 parent 5d2d64b commit 0f5c5aaCopy full SHA for 0f5c5aa
1 file changed
src/lualib/SourceMapTraceBack.ts
@@ -8,6 +8,11 @@ function __TS__SourceMapTraceBack(this: void, fileName: string, sourceMap: { [li
8
globalThis.__TS__originalTraceback = debug.traceback;
9
debug.traceback = (thread, message, level) => {
10
const trace = globalThis.__TS__originalTraceback(thread, message, level);
11
+
12
+ if (typeof trace !== "string") {
13
+ return trace;
14
+ }
15
16
const [result] = string.gsub(trace, "(%S+).lua:(%d+)", (file, line) => {
17
const fileSourceMap = globalThis.__TS__sourcemap[file + ".lua"];
18
if (fileSourceMap && fileSourceMap[line]) {
0 commit comments