Re:Robust Client-Side JavaScript (2017)
by the_gipsy on Wednesday June 24, 2020 @06:15PM
(#23634477)
it's a bit different though, you can't "push" errors somewhere, I guess so many error handlers and interceptors are set that it's not worth to split.
Re:Robust Client-Side JavaScript (2017)
by seanwilson on Wednesday June 24, 2020 @10:56PM
(#23636414)
> you can't "push" errors somewhere
Why? Can't you push the Error object or stack trace into an array to await processing?
Google Analytics for example lets you push everything you want to record into a plain global array called "ga", and when the library loads, everything in the array in processed by the library. This lets you start capturing events without waiting for the library to load.