mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Don't crash with invalid import maps
See: - http://wpt.live/import-maps/multiple-import-maps/with-errors.html
This commit is contained in:
parent
040653311e
commit
c891b83fc0
Notes:
github-actions[bot]
2024-08-06 14:26:37 +00:00
Author: https://github.com/jamierocks
Commit: c891b83fc0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/957
Reviewed-by: https://github.com/awesomekling
4 changed files with 35 additions and 11 deletions
10
Tests/LibWeb/Text/input/HTML/import-maps-invalid.html
Normal file
10
Tests/LibWeb/Text/input/HTML/import-maps-invalid.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<script src="../include.js"></script>
|
||||
<script type="importmap">
|
||||
Invalid import map.
|
||||
</script>
|
||||
<script type="module">
|
||||
test(() => {
|
||||
println("PASS");
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue