| 02:18 | <whosy> | snek: Do you mean 3600Jsยฏยนs? |
| 02:18 | <snek> | :> |
| 07:02 | <Aapo Alasuutari> | Mmyup, I indeed just had a bug in my code and got quite confused about the incorrect description comment. |
| 07:12 | <Aapo Alasuutari> | On a related note, the Also the document is seemingly missing a note about |
| 07:43 | <Aapo Alasuutari> | https://github.com/tc39/test262/pull/4692 https://github.com/tc39/test262/pull/4693 |
| 15:15 | <Jedel> |
Is that the correct behaviour? I would expect the event loop to interweave promise jobs with timeout jobs instead of trying to execute all pending promise jobs first |
| 17:42 | <Ashley Claymore> | That does sound like yes, those 3 tests do seem to rely on the host providing a event loop with a timeout event |
| 17:50 | <Ashley Claymore> | trying to emulate such an environment purely within 262 is naturally quite a challenge as the language does not have an event loop |
| 17:59 | <Ashley Claymore> | Maybe there is a way to avoid the setTimeout dependency, or mock it more faithfully using a subagent + broadcast - but that might mean the test uses the API under test to test that API ๐ |
| 21:32 | <Andreu Botella (๐ JST, at TC39)> | it's true that the JS spec doesn't specify anything about the ordering of promise jobs vs other kinds of jobs, but the HTML spec does say to run all of the "microtasks" (which include promise jobs) before any other kind of task |
| 21:54 | <James M Snell> | Which is of itself rather difficult for anything outside of browsers to follow. It's going to be nearly impossible to get consistency with that for stuff that needs to run across multiple runtimes :-/ |
| 21:54 | <James M Snell> | node.js, for instance, of course drains next ticks before microtasks and runs immediates and timers on an entirely separate mechanism |
| 21:57 | <Andreu Botella (๐ JST)> | leaving next ticks aside, I don't think node.js is inconsistent with the HTML spec here, because in HTML tasks are not a single queue, they're multiple task queues and it's up to the browser to decide which queue the next task comes from |
| 21:58 | <James M Snell> | Yeah, not inconsistent, just difficult at time to ensure the timing lines up |
| 21:59 | <James M Snell> | it's an unfortunte sad reality that there's so much code out there... particularly in tests... that rely on assuming strict ordering of timers and other tasks |
| 22:57 | <shu> | am i still needed for atomics or no, seems like confusion was resolved |