diff options
| author | sillylaird <sillyfanboy@gmail.com> | 2026-09-03 00:33:59 +0000 |
|---|---|---|
| committer | sillylaird <sillyfanboy@gmail.com> | 2026-09-03 00:33:59 +0000 |
| commit | 898b52edcb47bcb3e9d6106e74ca73e74ea01e70 (patch) | |
| tree | 85c6ee5ad58b860144551184d4cf86b560c62b91 /.agents/skills/bug-detective/references/javascript-errors.md | |
| download | www-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.tar.gz www-898b52edcb47bcb3e9d6106e74ca73e74ea01e70.zip | |
Diffstat (limited to '.agents/skills/bug-detective/references/javascript-errors.md')
| -rw-r--r-- | .agents/skills/bug-detective/references/javascript-errors.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.agents/skills/bug-detective/references/javascript-errors.md b/.agents/skills/bug-detective/references/javascript-errors.md new file mode 100644 index 0000000..d731b1e --- /dev/null +++ b/.agents/skills/bug-detective/references/javascript-errors.md @@ -0,0 +1,14 @@ +# JavaScript / TypeScript Error Guide + +## Frequent failure classes +- `TypeError` from undefined/null access +- async error swallowing in `Promise` chains +- `this` binding mismatches +- stale closure bugs in hooks or event handlers +- ESM / CJS import mismatches + +## Minimum debugging flow +1. copy the full stack trace, +2. identify whether the failure is runtime, bundler, or type-level, +3. confirm the failing object/value before changing logic, +4. reproduce with the smallest possible input. |
