facebookarchive/prepack

Bad command-line crashes Prepack

Open

#2.509 aberto em 30 de ago. de 2018

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)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.

Guia do colaborador