36087ec8f7
In case of compile-time errors kernel service has been serializing kernel AST anyway and has been passing kernel bytes to the VM. VM does not use those kernel bytes except a few unit tests. This change removes the unnecessary kernel serialization and freeing of kernel bytes and cleans up unit tests. TEST=ci Change-Id: Ic2464e50f56227bc998df53dd2b594c1abcf9468 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/436360 Commit-Queue: Alexander Markov <alexmarkov@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com>