Skip to content

Commit cb966c9

Browse files
committed
remove cleanStackLine
I'm not sure what the point of this was. Testing locally, they all seem to work without it.
1 parent b556f5c commit cb966c9

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/utils.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,10 @@ export function collectObjects(state, type) {
135135
return list;
136136
}
137137

138-
function cleanStackLine(line) {
139-
return line.replace(/^\s*at\s+/, '');
140-
}
141-
142138
export function getStackTrace() {
143139
const stack = (new Error()).stack;
144140
const lines = stack.split('\n');
145141
// Remove the first two entries, the error message and this function itself, or the webgl-memory itself.
146-
const userLines = lines.slice(2).filter((l) => !l.includes('webgl-memory'));
147-
return userLines.map((l) => cleanStackLine(l));
142+
const userLines = lines.slice(2).filter((l) => !l.includes('webgl-memory.js'));
143+
return userLines.join('\n');
148144
}

0 commit comments

Comments
 (0)