LibWeb: Disallow ASF in DOMMatrix constructor

We have no context to resolve ASFs against here so we should throw.
This commit is contained in:
Callum Law 2025-09-27 01:30:53 +12:00 committed by Alexander Kalenik
parent bf1564388d
commit 99dd648475
Notes: github-actions[bot] 2025-09-28 15:44:19 +00:00
3 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html>
<script src="../include.js"></script>
<script>
test(() => {
try {
new DOMMatrix("var(--a)");
println("Fail! Should throw error");
} catch {
println("Pass!");
}
});
</script>
</html>