-
Notifications
You must be signed in to change notification settings - Fork 412
Prepack diagnostics
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.
PP0001 to be defined
PP0002 might be an object with an unknown valueOf or toString method
PP0003 might not be an object, hence the in/instanceof operator might throw a TypeError
PP0004 might be an object that behaves badly for the in/instanceof operator
PP0005 might not be a function
PP0006 eval argument must be a known value
PP0007 with object must be a known value
PP0008 might be a symbol or an object with an unknown valueOf or toString or Symbol.toPrimitive method
PP0009 unknown super class
PP0010 unknown super class prototype
PP0011 property key value is unknown
PP0012 reference base value is unknown
PP0013 for in loops over unknown objects is not yet supported
PP0014 for of loops over unknown collections are not yet supported
PP0015 unknown computed property name
PP0016 global code may end abruptly
PP0017 unfrozen object leaked before end of global code
PP0018 module import may fail with an exception
PP0019 an abstract value with the same name exists.
PP0020 __optimizeReactComponentTree() React component tree (root/branch) failed
PP0021 abstract function call inside try/catch
PP0022 a class method incorrectly went through the serializeValue() code path
PP0023 Program may terminate with exception
PP0024 __optimizeReactComponentTree(rootComponent, config) has been called with invalid arguments
PP0025 unable to evaluate "key" and "ref" on a ReactElement due to an abstract config passed to createElement
PP0026 mutating an object with unknown properties, after some of those properties have already been used, is not yet supported
PP0027 case block containing a throw, return or continue is not yet supported
PP0028 toString or valueOf might return either an object or primitive
PP0029 the implies counter has exceeded the maximum value when trying to simplify abstract values
PP1001 additional function not defined in the global object
PP1002 additional function may terminate abruptly
PP1003 property write conflicts with write in additional function
PP1004 syntax error
PP1005 additional function has parameters that are not yet supported