1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:47:35 +00:00

LibWeb: Implement basic support for window[number]

This fixes an assertion on https://amazon.com/ since WindowProxy
would advertise "0" as an own property key, but then act like it was
a bogus property when actually queried for it directly.
This commit is contained in:
Andreas Kling 2023-07-25 15:07:13 +02:00
parent c431167736
commit a653b60e49
3 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,9 @@
<script src="include.js"></script>
<iframe src="about:blank"></iframe>
<script>
test(() => {
println(0 in window)
println(window[0])
println(1 in window)
});
</script>