feat: ignore if trace.fileName is empty
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
f1863c3b39
commit
9dee4b3a60
@ -136,7 +136,7 @@ export class MiaoScriptConsole implements Console {
|
||||
stack = Arrays.asList(stack)
|
||||
}
|
||||
stack.forEach(trace => {
|
||||
if (trace.fileName.startsWith('jar:file:')) { return }
|
||||
if (!trace.fileName || trace.fileName.startsWith('jar:file:')) { return }
|
||||
if (trace.className.startsWith('<')) {
|
||||
let { fileName, lineNumber } = this.readSourceMap(trace.fileName, trace.lineNumber)
|
||||
if (fileName.startsWith(root)) { fileName = fileName.split(root)[1] }
|
||||
|
Loading…
Reference in New Issue
Block a user