Auto merge of #23552 - Eijebong:fix-23511, r=jdm

Prevent the error from triggering a page error in Worker-nested-importScripts-error

Fixes #23511

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23552)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2019-06-12 19:51:47 -04:00 committed by GitHub
commit a5c515b81c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -682634,7 +682634,7 @@
"testharness"
],
"workers/Worker-nested-importScripts-error.html": [
"8863b7523010dd8566d1ed42094e519efc500a65",
"bd96c835df9275e6f191adfe79f47f1df2d7d5bf",
"testharness"
],
"workers/Worker-replace-event-handler.any.js": [

View file

@ -12,6 +12,7 @@ promise_test(t => {
}).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>