From 72015ec132466f2b38d360907ee1ed7e6a74a165 Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Sun, 10 May 2020 16:25:04 +0800 Subject: [PATCH] feat: ignore jar:file stack info Signed-off-by: MiaoWoo --- packages/api/src/console.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/api/src/console.ts b/packages/api/src/console.ts index 3c6723db..3969d99b 100644 --- a/packages/api/src/console.ts +++ b/packages/api/src/console.ts @@ -136,6 +136,7 @@ export class MiaoScriptConsole implements Console { stack = Arrays.asList(stack) } stack.forEach(trace => { + if (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] }