Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using dart:mirrors. #55

Merged
merged 1 commit into from
Feb 16, 2017
Merged

Stop using dart:mirrors. #55

merged 1 commit into from
Feb 16, 2017

Conversation

nex3
Copy link
Member

@nex3 nex3 commented Feb 15, 2017

Closes #1

@@ -28,10 +27,7 @@ abstract class Client {
/// Currently this will create an [IOClient] if `dart:io` is available and
/// throw an [UnsupportedError] otherwise. In the future, it will create a
/// [BrowserClient] if `dart:html` is available.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment isn't relevant anymore, since you can't import this library without "dart:io" being available, can you?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can now be importable while also being unavailable in the sense that its API just throws UnsupportedErrors.

@@ -3,37 +3,24 @@
// BSD-style license that can be found in the LICENSE file.

import 'dart:async';
import 'dart:io';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean "package:http/http.dart" can only be imported on the command line VM? If so, isn't that a breaking change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of 1.22, dart:io is importable on all platforms and will just throw UnsupportedErrors at runtime if it's not supported.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What?! Where was that announced? It's not in the CHANGELOG.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a @dgrove question.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the change to dart:io for 1.22 or 1.23? (I heard it was 1.23.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a fix out as #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants