mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
LibWeb: Ensure requests modules is not empty before indexing into it
Regression from 5af613aa65
Fixes: #2676
This commit is contained in:
committed by
Andreas Kling
parent
2ff03ea7d2
commit
30c8510725
@@ -0,0 +1,5 @@
|
||||
// NOTE: Doesn't matter what this imports, but this imports itself so there is no import error in test logs.
|
||||
import("./import-in-a-module.js");
|
||||
|
||||
const returnValue = "PASS! (Didn't crash)";
|
||||
export default returnValue;
|
||||
@@ -0,0 +1,8 @@
|
||||
<script src="../../include.js"></script>
|
||||
<script type="module">
|
||||
import m from "./import-in-a-module.js";
|
||||
|
||||
test(() => {
|
||||
println(m);
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user