|
61 | 61 | var tokens = line.replace(/^\s+/, '').split(/\s+/).slice(1); |
62 | 62 | var locationParts = this.extractLocation(tokens.pop()); |
63 | 63 | var functionName = (!tokens[0] || tokens[0] === 'Anonymous') ? undefined : tokens[0]; |
64 | | - return new StackFrame(functionName, undefined, locationParts[0], locationParts[1], locationParts[2]); |
| 64 | + return new StackFrame(functionName, undefined, locationParts[0], locationParts[1], locationParts[2], line); |
65 | 65 | }, this); |
66 | 66 | }, |
67 | 67 |
|
|
72 | 72 | var tokens = line.split('@'); |
73 | 73 | var locationParts = this.extractLocation(tokens.pop()); |
74 | 74 | var functionName = tokens.shift() || undefined; |
75 | | - return new StackFrame(functionName, undefined, locationParts[0], locationParts[1], locationParts[2]); |
| 75 | + return new StackFrame(functionName, undefined, locationParts[0], locationParts[1], locationParts[2], line); |
76 | 76 | }, this); |
77 | 77 | }, |
78 | 78 |
|
|
95 | 95 | for (var i = 2, len = lines.length; i < len; i += 2) { |
96 | 96 | var match = lineRE.exec(lines[i]); |
97 | 97 | if (match) { |
98 | | - result.push(new StackFrame(undefined, undefined, match[2], match[1])); |
| 98 | + result.push(new StackFrame(undefined, undefined, match[2], match[1], lines[i])); |
99 | 99 | } |
100 | 100 | } |
101 | 101 |
|
|
110 | 110 | for (var i = 0, len = lines.length; i < len; i += 2) { |
111 | 111 | var match = lineRE.exec(lines[i]); |
112 | 112 | if (match) { |
113 | | - result.push(new StackFrame(match[3] || undefined, undefined, match[2], match[1])); |
| 113 | + result.push(new StackFrame(match[3] || undefined, undefined, match[2], match[1], lines[i])); |
114 | 114 | } |
115 | 115 | } |
116 | 116 |
|
|
134 | 134 | argsRaw = functionCall.replace(/^[^\(]+\(([^\)]*)\)$/, '$1'); |
135 | 135 | } |
136 | 136 | var args = (argsRaw === undefined || argsRaw === '[arguments not available]') ? undefined : argsRaw.split(','); |
137 | | - return new StackFrame(functionName, args, locationParts[0], locationParts[1], locationParts[2]); |
| 137 | + return new StackFrame(functionName, args, locationParts[0], locationParts[1], locationParts[2], line); |
138 | 138 | }, this); |
139 | 139 | } |
140 | 140 | }; |
|
0 commit comments