Skip to content

Commit 25b74ea

Browse files
authored
chore(): imp perf (#450)
1 parent 084fce2 commit 25b74ea

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

workers/javascript/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ export default class JavascriptEventWorker extends EventWorker {
234234
*/
235235
lines = this.readSourceLines(consumer, originalLocation);
236236

237-
const originalContent = consumer.sourceContentFor(originalLocation.source);
237+
// const originalContent = consumer.sourceContentFor(originalLocation.source);
238238

239-
functionContext = this.getFunctionContext(originalContent, originalLocation.line) ?? originalLocation.name;
239+
// functionContext = this.getFunctionContext(originalContent, originalLocation.line) ?? originalLocation.name;
240240
} catch(e) {
241241
HawkCatcher.send(e);
242242
this.logger.error('Can\'t get function context');
@@ -260,7 +260,7 @@ export default class JavascriptEventWorker extends EventWorker {
260260
* @param line - number of the line from the stack trace
261261
* @returns {string | null} - string of the function context or null if it could not be parsed
262262
*/
263-
private getFunctionContext(sourceCode: string, line: number): string | null {
263+
private _getFunctionContext(sourceCode: string, line: number): string | null {
264264
let functionName: string | null = null;
265265
let className: string | null = null;
266266
let isAsync = false;

0 commit comments

Comments
 (0)