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
Importing from HTTP doesn't work on dart2js #20836
Comments
Note, importing from HTTP works in the VM. Added Area-Dart2JS, Triaged labels. |
https://codereview.chromium.org/554363002 Set owner to @floitschG. |
Fixed in r40092. Added Fixed label. |
This comment was originally written by @kaendfinger Thanks |
This comment was originally written by @kaendfinger floitsch, does this support https too? That issue was fixed last night. |
I don't think so, but a few small tests indicate that it would be extremely easy to add. Added Triaged label. |
This comment was originally written by @kaendfinger Thanks. |
https://codereview.chromium.org/557383002 Added Started label. |
Fixed in r40149. Added Fixed label. |
This issue was originally filed by @kaendfinger
Code:
import "http://gist.githubusercontent.com/kaendfinger/ef1e933a8b295165f2c2/raw/dayName.dart";
void main() {
print(dayName(new DateTime.now()));
}
When you try to compile this with dart2js, you get the following error:
test.dart:1:8:
Error: Can't read 'http://gist.githubusercontent.com/kaendfinger/ef1e933a8b295165f2c2/raw/dayName.dart' (Illegal argument(s): Unknown scheme in uri 'http://gist.githubusercontent.com/kaendfinger/ef1e933a8b295165f2c2/raw/dayName.dart').
import "http://gist.githubusercontent.com/kaendfinger/ef1e933a8b295165f2c2/raw/dayName.dart";
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Compilation failed.
The text was updated successfully, but these errors were encountered: