mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
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:
commit
a5c515b81c
2 changed files with 2 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue