e0e5c85f48
This ensures that errors are printed to the console when running in node and the main method is async. Previously errors were being swallowed because node exits with exit code zero in this circumstance. Other minor cleanup to remove unused variables, imports, and flags. Change-Id: I1dac156bbe7aa204a6034cb56ef8e9353568d400 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/101340 Reviewed-by: Vijay Menon <vsm@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>