c5a57427d1
This change makes it possible to set environment variables for the current process from package:dartdev. As a proof of concept, package:dartdev now sets `DART_ROOT` to the path of the Dart SDK in the environment. Related to https://github.com/dart-lang/sdk/issues/63210 and https://github.com/dart-lang/sdk/issues/62876 TEST=pkg/dartdev/test/environment_test.dart Change-Id: If3a90279e99dadaba435ae3e43a752dcfda69227 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/499300 Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Alexander Aprelev <aam@google.com>