facebookarchive/prepack

Bad command-line crashes Prepack

Aberta

#2.509 aberto em 30 de ago. de 2018

 (0 comentário) (0 reação) (0 responsável)JavaScript (520 forks)batch import
bughelp wantedlevel 1 (super easy)priority: low

Métricas do repositório

Stars
 (14.268 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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