Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1345478 - Make the PrintErrorKind::Error case explicitly unreacha…
…ble in PrintSingleError; r=bbouvier This patch explicitly calls MOZ_CRASH() in the switch case PrintErrorKind::Error that is never reached inside the function PrintSingleError in the file js/src/jscntxt.cpp. Explicitly handling all the possible cases avoids the compiler to issue warnings for them: a non handled case in the switch code that might derive from additions to the enum class PrintErrorKind can be caught at compile time rather then having a default switch case for handling it, which instead would be called at runtime. MozReview-Commit-ID: ECZlMoLvn2m UltraBlame original commit: 1741441028b5e0713da9d93f175c0f8c79e87749
- Loading branch information