in src/errors/js.ts [28:45]
public handleErrors(options: CustomReportOptions) {
this.infoOpt = options;
window.onerror = (message, url, line, col, error) => {
this.logInfo = {
...this.infoOpt,
uniqueId: uuid(),
category: ErrorsCategory.JS_ERROR,
grade: GradeTypeEnum.ERROR,
errorUrl: url,
line,
col,
message,
collector: options.collector,
stack: error ? error.stack : '',
};
this.traceInfo();
};
}