facebookarchive/prepack

Bad command-line crashes Prepack

Open

#2,509 创建于 2018年8月30日

在 GitHub 查看
 (0 评论) (0 反应) (0 负责人)JavaScript (14,268 star) (520 fork)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.

贡献者指南