Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: throw if unreachable code is reached #31712

Merged
merged 1 commit into from
Feb 11, 2020
Merged

Commits on Feb 11, 2020

  1. util: throw if unreachable code is reached

    If a comparison code path that is supposed to be unreachable is reached,
    throw. Add a c8 comment to ignore coverage for the line, as it should be
    unreachable.
    
    PR-URL: nodejs#31712
    Reviewed-By: Gus Caplan <[email protected]>
    Reviewed-By: Anto Aravinth <[email protected]>
    Reviewed-By: Yosuke Furukawa <[email protected]>
    Reviewed-By: Yongsheng Zhang <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
    Reviewed-By: Ruben Bridgewater <[email protected]>
    Reviewed-By: Colin Ihrig <[email protected]>
    Trott committed Feb 11, 2020
    Configuration menu
    Copy the full SHA
    3eba33e View commit details
    Browse the repository at this point in the history