You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
source-map v0.7.x uses WebAssembly for a remarkably faster parsing of source maps. StackTraceGPS is compatible with it with only very minor changes.
Expected Behavior
StackTraceGPS uses WebAssembly to parse source maps.
Context
Parsing modern web app source maps on the client in JavaScript leads to an unusable user experience, locking up the browser for long enough that the user may suspect the app has crashed, and thus force-quits the browser before we could send the parsed error to our server.
import{StackTraceGPS}from"./stacktrace-gps.ts"constreport=async(error: Error)=>{
using gps=newStackTraceGPS()conststack=awaitPromise.all((awaitStackTrace.fromError(payload.error,{offline: true})).map(async(stackframe)=>{try{returnawaitgps.pinpoint(stackframe)}catch{returnstackframe}},),)// report the error…}
Activity