~/talk

Maneuvering Errors within the Bowels of JavaScript

Talkat UtahJS Conf 2017 · on Wednesday, 2017-09-27· [javascript, testing]
slides:none on file

Debugging data shows client-side errors hit large numbers — roughly 10% of daily users with spikes to 30% — because browsers swallow or mangle many failures. Uses Sentry/Raven, TrackJS/Bugsnag and window.onerror, and demonstrates that throwing non-Error values or letting promises go uncaught yields no stack trace (hence object Object errors and “failed to fetch” that masks CORS or rolling‑deploy failures). Concrete fixes: always throw new Error, create the Error early to capture caller stacks, add root-level promise catches or use captureException APIs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07JavaScript errors burn
  3. 4:46Tracking errors simply
  4. 10:09Throwing non-error objects
  5. 11:52Async errors and promises
  6. 16:48Debugging fetch errors
  7. 21:26Promise chain catch placement
  8. 26:43Async functions error handling
  9. 30:00Failed to fetch causes
  10. 31:45Object object errors
  11. 32:27Key takeaways on errors
  12. 35:52Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.