-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1461604 [wpt PR 11003] - Worker: Throw an ErrorEvent on a failure…
… of module loading, a=testonly Automatic update from web-platform-testsWorker: Throw an ErrorEvent on a failure of module loading This behavior is defined in the HTML spec: Step 13: "If the algorithm asynchronously completes with null, queue a task to fire an event named error at worker, and return." https://html.spec.whatwg.org/multipage/workers.html#worker-processing-model An ErrorEvent is created on a worker thread, and passed to the main thread to dispatch it on a worker object in a document context. Bug: 843031 Change-Id: I1fd82cba1e02b1658bb2b556742f7a206ee754a7 Reviewed-on: https://chromium-review.googlesource.com/1058998 Commit-Queue: Hiroki Nakagawa <nhirokichromium.org> Reviewed-by: Kouhei Ueno <kouheichromium.org> Cr-Commit-Position: refs/heads/master{#558903} -- wpt-commits: 92a3d3d14638e8aff86eec3a2b1a6599249ea994 wpt-pr: 11003 UltraBlame original commit: 4143290a87a68d7268365fe429e48cf6aba9e52d
- Loading branch information
Showing
4 changed files
with
34 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
testing/web-platform/tests/workers/modules/resources/dynamic-import-given-url-worker.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
|
||
self.addEventListener('message', e => { | ||
import(e.data); | ||
import(e.data).catch(error_event => postMessage('ERROR')); | ||
}); |
1 change: 1 addition & 0 deletions
1
.../web-platform/tests/workers/modules/resources/static-import-non-existent-script-worker.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './non-existent-script.js'; |