codex-team / codex-team/hawk.javascript
Bad plain object handling as PromiseRejectionEvent reason
Abierto
- Lenguaje dominante
- TypeScript
- Estrellas
- 32
- Forks
- 4
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.