Skip to content

Commit

Permalink
Prevent the error from triggering a page error in Worker-nested-impor…
Browse files Browse the repository at this point in the history
…tScripts-error

Fixes #23511
  • Loading branch information
Eijebong committed Jun 12, 2019
1 parent b3eed5b commit 834e577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/wpt/metadata/MANIFEST.json
Expand Up @@ -682244,7 +682244,7 @@
"testharness"
],
"workers/Worker-nested-importScripts-error.html": [
"8863b7523010dd8566d1ed42094e519efc500a65",
"bd96c835df9275e6f191adfe79f47f1df2d7d5bf",
"testharness"
],
"workers/Worker-replace-event-handler.any.js": [
Expand Down
Expand Up @@ -12,6 +12,7 @@
}).then(e => {
assert_equals(e.type, "error");
assert_true(e.filename.indexOf('invalidScript.js') >= 0);
e.preventDefault();
});
}, 'Tests that errors from the import scripts come from the expected file.')
</script>

0 comments on commit 834e577

Please sign in to comment.