3 PP0016
Herman Venter edited this page 2017-09-26 14:57:08 -07:00

Global code may end abruptly

Currently there are two possible causes of this error:

  1. Prepack encountered a throw statement that might be reached at runtime and that is not caught anywhere. This makes it hard to be precise about the contents of the heap at the end of global code execution, so Prepack will not try to optimize this code. To make this error go away please ensure that all throw statements can only be reached from inside try blocks.

  2. Prepack encountered a branch on an unknown value where one branch will throw and another will not. Prepack currently does not support this behavior even if the throw is inside a try block. An issue has been recorded here to support this in the future. If this is a blocking issue, please reach out to the team.