Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1669612 [wpt PR 26019] - [top-level await] Prohibit top-level awa…
…it in service workers, a=testonly Automatic update from web-platform-tests [top-level await] Prohibit top-level await in service workers This CL disallows top-level await for service workers by terminating the worker. The error that's thrown when Run Service Worker fails is changed to a TypeError per the spec draft for top-level await integration [0]. Note that this also changes the sudden termination errors that were previously AbortErrors to TypeErrors. [0] w3c/ServiceWorker#1444 Bug: 1129795 Bug: 1022182 Bug: v8:9344 Change-Id: Ia764ab553b88e52d48125f23632dc77f4c256009 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2454306 Commit-Queue: Shu-yu Guo <sygchromium.org> Reviewed-by: Dominic Farolino <domchromium.org> Reviewed-by: Makoto Shimazu <shimazuchromium.org> Reviewed-by: Hiroshige Hayashizaki <hiroshigechromium.org> Cr-Commit-Position: refs/heads/master{#832849} -- wpt-commits: aa77795ebe17dc0d7c3259a3fe92023b9da62d3e wpt-pr: 26019 UltraBlame original commit: 259caf0f5dd8d0d96bc5604e0b5f0ad11f16faf1
- Loading branch information