fef83c96fc
Previously, we were crashing when trying to report a compile-time error via H.ReportError when loading a bootstrap library from kernel. That happened because we didn't have LongJumpScope set up. This change sets up LongJumpScope and makes sure compile-time errors during kernel loading can be reported and propagated up. This also removes the need to use FATAL error when detecting a dill file which is incompatible to the current runtime mode, so we can use less severe compile-time error for that. Fixes https://github.com/dart-lang/sdk/issues/41870 Change-Id: Ib3690f7812c20e5529f3066ed37fdb9052dd559b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148683 Reviewed-by: Siva Annamalai <asiva@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>