Issue #2304 - Part 3 - Implement the error cause proposal. https://bugzilla.mozilla.org/show_bug.cgi?id=1679653

This commit is contained in:
Brian Smith 2026-03-07 00:41:42 -06:00 committed by OwnedByWuigi
commit 36285d0405
6 changed files with 81 additions and 12 deletions

View file

@ -221,6 +221,12 @@ typedef enum JSWhyMagic
/** for local use */
JS_GENERIC_MAGIC,
/**
* When an error object is created without the error cause argument, we set
* the error's cause slot to this magic value.
*/
JS_ERROR_WITHOUT_CAUSE,
JS_WHY_MAGIC_COUNT
} JSWhyMagic;