facebookarchive/prepack

Bad command-line crashes Prepack

Open

#2 509 ouverte le 30 août 2018

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)JavaScript (14 268 stars) (520 forks)batch import
bughelp wantedlevel 1 (super easy)priority: low

Description

This triggers an invariant violation.

node lib/prepack-cli.js --debugDiagnosticSeverity foo

It shouldn't. The command-line argument processing should rather print a user-friendly error message in such cases and exit, like it already happens for most or all other bad arguments.

Guide contributeur