facebookarchive/prepack

Bad command-line crashes Prepack

Open

#2.509 geöffnet am 30. Aug. 2018

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (14.268 Stars) (520 Forks)batch import
bughelp wantedlevel 1 (super easy)priority: low

Beschreibung

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.

Contributor Guide