mirror of
https://github.com/servo/servo
synced 2026-05-09 08:32:31 +02:00
Our implementation of [fetch a single module script](https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-single-module-script) was missing the task queueing steps: ``` 5. If moduleMap[(url, moduleType)] is "fetching", wait in parallel until that entry's value changes, then queue a task on the networking task source to proceed with running the following steps. 6. If moduleMap[(url, moduleType)] exists, run onComplete given moduleMap[(url, moduleType)], and return. ``` Instead we appended a `PromiseNativeHandler`, which would run `on_complete` when resolved, on the promise of the pending fetch. Testing: This change shouldn't be observable since modules are evaluated in sync, but it's required for #39417. Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
89 KiB
89 KiB