mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +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:
parent
c431167736
commit
a653b60e49
3 changed files with 18 additions and 1 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue