facebookarchive/prepack
View on GitHub`__evaluatePureFunction` doesn't properly validate arguments
Open
#2385 opened on Aug 3, 2018
bughelp wantedlevel 1 (super easy)
Description
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.