Closed
Description
Currently, if a snapshotted pub executable (most commonly one installed with "pub global activate") has an unhandled exception, the executable will be recompiled and re-run three times before ultimately failing. This is du to issue #20802, which makes it impossible for the script running the executable to determine if it's up-to-date without running it, and the fact that the VM emits the same exit code for unhandled exceptions and for invalid snapshot numbers.