提交 f38cf300 编写于 作者: D DCloud_LXH

fix(uni-stacktracey): support file://

上级 2c587b54
......@@ -116,6 +116,9 @@ class StackTracey {
const entries = lines.map((line, index) => {
line = line.trim();
let callee, fileLineColumn = [], native, planA, planB;
if (line.indexOf('file:') !== -1) {
line = line.replace(/file:\/\/(.*)www/, 'file://');
}
if ((planA = line.match(/at (.+) \(eval at .+ \((.+)\), .+\)/)) || // eval calls
(planA = line.match(/at (.+) \((.+)\)/)) ||
(line.slice(0, 3) !== 'at ' && (planA = line.match(/(.*)@(.*)/)))) {
......
......@@ -108,6 +108,9 @@ class StackTracey {
const entries = lines.map((line, index) => {
line = line.trim();
let callee, fileLineColumn = [], native, planA, planB;
if (line.indexOf('file:') !== -1) {
line = line.replace(/file:\/\/(.*)www/, 'file://');
}
if ((planA = line.match(/at (.+) \(eval at .+ \((.+)\), .+\)/)) || // eval calls
(planA = line.match(/at (.+) \((.+)\)/)) ||
(line.slice(0, 3) !== 'at ' && (planA = line.match(/(.*)@(.*)/)))) {
......
......@@ -163,6 +163,10 @@ class StackTracey {
planA,
planB
if (line.indexOf('file:') !== -1) {
line = line.replace(/file:\/\/(.*)www/, 'file://')
}
if (
(planA = line.match(/at (.+) \(eval at .+ \((.+)\), .+\)/)) || // eval calls
(planA = line.match(/at (.+) \((.+)\)/)) ||
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册