feat: ignore jar:file stack info

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
MiaoWoo 2020-05-10 16:25:04 +08:00
parent 3e329233ce
commit 72015ec132

View File

@ -136,6 +136,7 @@ export class MiaoScriptConsole implements Console {
stack = Arrays.asList(stack) stack = Arrays.asList(stack)
} }
stack.forEach(trace => { stack.forEach(trace => {
if (trace.fileName.startsWith('jar:file:')) { return }
if (trace.className.startsWith('<')) { if (trace.className.startsWith('<')) {
let { fileName, lineNumber } = this.readSourceMap(trace.fileName, trace.lineNumber) let { fileName, lineNumber } = this.readSourceMap(trace.fileName, trace.lineNumber)
if (fileName.startsWith(root)) { fileName = fileName.split(root)[1] } if (fileName.startsWith(root)) { fileName = fileName.split(root)[1] }