We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b556f5c commit cb966c9Copy full SHA for cb966c9
src/utils.js
@@ -135,14 +135,10 @@ export function collectObjects(state, type) {
135
return list;
136
}
137
138
-function cleanStackLine(line) {
139
- return line.replace(/^\s*at\s+/, '');
140
-}
141
-
142
export function getStackTrace() {
143
const stack = (new Error()).stack;
144
const lines = stack.split('\n');
145
// 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));
+ const userLines = lines.slice(2).filter((l) => !l.includes('webgl-memory.js'));
+ return userLines.join('\n');
148
0 commit comments