BUG=https://github.com/dart-lang/sdk/issues/24505 Review URL: https://codereview.chromium.org/1390813002 .