Skip to content

Commit 7060ee8

Browse files
Update prod (#451)
* Js worker fix (#445) * fix(): move logs after the conditions * chore(): fix error sending * fix(): do not use jsx parser * chore(): leave todo * chore(): do not use getFunctionContext * fix(): fix source-map saving (#449) * fix(): avoid mutations on savedFiles * revert js worker changes * fix(): js worker tests * imp(): catch errors on get function context * chore(): imp perf (#450) --------- Co-authored-by: e11sy <130844513+e11sy@users.noreply.github.com>
1 parent 54e7292 commit 7060ee8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)