Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Prepack diagnostics

Dominic Gannaway edited this page May 8, 2018 · 112 revisions

Prepack diagnostic messages provide details on why Prepack has failed to optimize something. Typically this is because of code that makes use of some environmental value that is not known to Prepack at compile time. The error messages provide more detail of the exact situation that led to such failures.

In general, a diagnostic message also points to the source code location of the expression or statement that causes the failure, a call stack for the execution that reached the error location, as well as information on how the unknown environmental value propagated to the failure location.

PP1001 additional function not defined in the global object
PP1002 optimized function may terminate abruptly
PP1003 property write conflicts with write in optimized function
PP1004 syntax error
PP1005 optimized function has parameters that are not yet supported

PP8000 Result of Math.random() is made deterministic via a fixed mathRandomSeed

PP9000 serializer limitation

Clone this wiki locally