codex-team / codex-team/hawk.javascript
Bad plain object handling as PromiseRejectionEvent reason
Ouverte
- Langage dominant
- TypeScript
- Étoiles
- 32
- Forks
- 4
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Currently when a promise is rejected with a plain object instead of an Error `Promise.reject({ code: 42, detail: 'oops' })`, the catcher loses the object content - `String(obj)` produces `"[object Object]"`.
The console catcher also falls back to `event.reason?.message || String(event.reason)`, which either picks up an accidental `message` property or produces the same useless string.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.