facebookarchive/prepack

Bad command-line crashes Prepack

Open

#2,509 opened on 2018年8月30日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)JavaScript (14,268 stars) (520 forks)batch import
bughelp wantedlevel 1 (super easy)priority: low

説明

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.

コントリビューターガイド

Bad command-line crashes Prepack · facebookarchive/prepack#2509 | Good First Issue