Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Herman Venter edited this page Sep 26, 2017 · 3 revisions

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.