MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dedup frames in hash

+5 -1
+5 -1
docs/reports/src/reports.ts
··· 22 22 frames: ReportFrameRow[]; 23 23 }; 24 24 25 + function dedupeFrame(frame: string): string { 26 + return frame.replace(/\b0x[0-9a-fA-F]+\b/g, '0x'); 27 + } 28 + 25 29 async function reportTrace(report: CrashReport): Promise<string> { 26 30 const traceInput = JSON.stringify({ 27 31 runtime: report.runtime, ··· 32 36 code: report.code, 33 37 reason: report.reason, 34 38 addr: report.addr, 35 - frames: report.frames, 39 + frames: report.frames.map(dedupeFrame), 36 40 }); 37 41 38 42 return sha256(traceInput);