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.

貢獻者指南

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