facebookarchive/prepack

`__evaluatePureFunction` doesn't properly validate arguments

Open

#2,385 opened on 2018年8月3日

GitHub で見る
 (6 comments) (0 reactions) (0 assignees)JavaScript (14,268 stars) (520 forks)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.

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

`__evaluatePureFunction` doesn't properly validate arguments · facebookarchive/prepack#2385 | Good First Issue