mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +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
Notes:
sideshowbarker
2024-07-17 18:49:10 +09:00
Author: https://github.com/awesomekling
Commit: a653b60e49
Pull-request: https://github.com/SerenityOS/serenity/pull/20192
3 changed files with 18 additions and 1 deletions
|
|
@ -0,0 +1,3 @@
|
|||
true
|
||||
[object Window]
|
||||
false
|
||||
|
|
@ -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