feat(http): add support for JSONP requests#2905
Conversation
There was a problem hiding this comment.
I'm not going to manually fix clang-format errors
There was a problem hiding this comment.
When you run gulp enforce-format, it should give you the script to run to automatically fix all clang complaints.
There was a problem hiding this comment.
The script is what produced the bad sources, out just looks really really bad
|
anyone who knows anything about dart have an idea here? the JS code is happy |
There was a problem hiding this comment.
Fixing this missing semicolon, and moving async.done to the next line will get rid of all ts2dart errors.
|
I've started addressing some of the dart issues on my fork: https://github.com/jeffbcross/angular/tree/pr-2905 I'll get back into it tomorrow and will connect with you on the right approach to get this working in dart, which is still not completely clear to me. Requires a little more research into dart. |
|
Yeah, I think my fork is not the direction to go. We'll most likely just need to create a |
|
PTAL --- it's working locally for me on dart2js and production js, and passing all cjs tests |
|
actually, a slight fixup was needed for cjs that broke the dart build --- it seems ts2dart doesn't handle "protected" properties |
|
Just blocked on dart-archive/ts2dart#240 I guess |
|
I merged dart-archive/ts2dart#240, but will have to revisit Monday because there's a release process for ts2dart that I'm not familiar with. |
|
Though you could update the PR to use latest ts2dart package if you want to see if Travis goes green. |
|
I'll add a commit to test that tonight just in case the patch wasn't enough |
|
well that didn't work |
|
I'm not sure why the benchmark uses |
|
Whoa, Travis is actually green! Is this ready for review, @caitp? |
|
yes, by all means =) |
There was a problem hiding this comment.
There was a problem hiding this comment.
Dart's TypeError class doesn't let me attach an arbitrary message. I guess Dart doesn't use it as a catch-all exception the way JS does
There was a problem hiding this comment.
I don't understand this expectation. It would pass under any circumstance because you're comparing two string literals.
There was a problem hiding this comment.
yeah, the wording makes sense but in practice it doesn't really work. We do need some kind of UNREACHABLE() assertion though
|
Left some minor comments, mostly around tests being written in a way where expectations could be skipped, or aren't valid, I'll cut the ts2dart release this afternoon, and with the comments addressed, should be good to merge. I'll wait to give it green label until ts2dart is released. |
|
yeah, will make the suggested changes |
|
Those commits should address the review comments, still waiting on the ts2dart release so that I can pull that in here. I'll squash when checking in |
|
TS2Dart has been updated: 3810e4b |
|
LGTM! Merge when Travis goes green. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Dart is broken, WIP
Closes #2818