-
Notifications
You must be signed in to change notification settings - Fork 43
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
async/await, this time with feeling [M1185106] #521
Comments
We need to implement JS |
The C++ version used here seems to originate from https://hg.mozilla.org/mozilla-central/rev/309ecb16acfe ( https://bugzilla.mozilla.org/show_bug.cgi?id=1313049 ) However, the root implementation it descends from is here: https://bugzilla.mozilla.org/show_bug.cgi?id=911216 |
https://bug911216.bmoattachments.org/attachment.cgi?id=8727872 contains the base implementation plus some tests. We could ignore all the However, the changes in |
Aborting the current parser work while I think this over. The other patches should be webcompatible. |
Let's use the machinery we do have to at least generate a warning when such functions are encountered. At least we have DOM |
wonder if older round of async/await patches can be used and fix for final spec? https://hg.mozilla.org/mozilla-central/rev/2384726c541f |
That's an interesting idea. It's of the right era. I'm not sure what the test failures are, but it's worth a shot. |
It builds and passes most tests but I have some serious doubts about whether it will work properly in the browser mostly due to its hal-fassed
Next step is add a couple more tests from |
It doesn't spin the event loop properly, so sites relying on it don't work right. However, many sites that didn't load at all now at least parse, and some load further. Github now enables a couple more buttons. With #541 also loaded, the site is now complaining about supporting |
I've concluded I can't get the syntactic changes to work with this version. Backing out and putting the work here for reference. |
…fourfox#521 (comment): - #521: baseline parser support for async/await, with toggle, without bytecode (passes tests) (0e5746aaf) - #521: fix yield handling (includes M1305566 pts 4-7) (2d25f717b) - #521: make async functions throw for compatibility when enabled (46b01b5d4)
A number of broken sites rely on this functionality, and it just made it into Fx52. I'm not 100% sure it's doable, but reviewing the changesets suggest that much of it should work sans the Annex B portions.
https://bugzilla.mozilla.org/show_bug.cgi?id=1185106
(note deps)
The text was updated successfully, but these errors were encountered: