File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments