mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Disallow ASF in DOMMatrix constructor
We have no context to resolve ASFs against here so we should throw.
This commit is contained in:
parent
bf1564388d
commit
99dd648475
Notes:
github-actions[bot]
2025-09-28 15:44:19 +00:00
Author: https://github.com/Calme1709
Commit: 99dd648475
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6320
3 changed files with 16 additions and 1 deletions
|
|
@ -0,0 +1 @@
|
|||
Pass!
|
||||
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue