facebookarchive/prepack
在 GitHub 查看`__evaluatePureFunction` doesn't properly validate arguments
Open
#2,385 建立於 2018年8月3日
bughelp wantedlevel 1 (super easy)
倉庫指標
- Star
- (14,268 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
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.