facebookarchive/prepack

`__evaluatePureFunction` doesn't properly validate arguments

Open

#2 385 ouverte le 3 août 2018

Voir sur GitHub
 (6 commentaires) (0 réactions) (0 assignés)JavaScript (14 268 stars) (520 forks)batch import
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.

Guide contributeur