Closed ryan-roemer closed 8 years ago
Travis hasn't picked up the PR yet. A SO comment says "close and reopen" can force a build, so doing that.
Weird, that worked. Travis is a 'runnin.
Wowza - nice work!
Going over this in more detail. In general though I'd be very cautious about making such big changes without having a good test case first. I'm almost certain that most of the incorrect loaders would pass our current test suite here, and that none of the tests yet exercise the failure scenario (the one little-loader was made to pass, not "failure" as in onerror
). So even if we're pretty sure that the non-error-case logic is kept the same, it would be nice to know for sure!
@exogen -- Teams need to be able to tell if a script fail right now. They're using onerror
unreliably in VanillaJS code.
Can you open up a PR with a functional test to expose the issue or paste a diff here?
To follow up: this branch still passes the more brutal test I have in my repo, so it doesn't break anything, that's good! It sounds like @ryan-roemer is working on porting that test, as I'm mostly down for the count today. Still testing the new onerror
handling.
Holy moly, it works!!!
Fixes #15
/cc @exogen @PeoB @aisapatino @baer