2087d6db46
For initializeFromComponent to work correctly the platform has to be provided (as the other libraries provided are linked to some platform, and loading another one is thus no good). This CL changes it so we don't load another one, and checks that the component we're trying to initialize from actually contains dart:core. Change-Id: I88d30436c101c589b0555ff70ae21297ed665d7b Reviewed-on: https://dart-review.googlesource.com/c/93435 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Alexander Aprelev <aam@google.com>