facebookarchive/prepack

`__evaluatePureFunction` doesn't properly validate arguments

Open

#2,385 创建于 2018年8月3日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)JavaScript (14,268 star) (520 fork)batch import
bughelp wantedlevel 1 (super easy)

描述

Prepacking the following crashes Prepack.

__evaluatePureFunction("boo");

In the implementation, it shouldn't check via an invariant that the argument is a proper value, but instead it should throw a user-level exception or emit a CompilerDiagnostics error.

贡献者指南