mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibWeb: Don't cache property accesses on WindowProxy
Since the underlying HTML::Window can change, caching property accesses on WindowProxy is not as simple as remembering the shape. Let's disable caching here for now. We can come back to it in the future when we have no low-hanging fruit left. :^) Fixes an assertion failure on https://twinings.co.uk/
This commit is contained in:
parent
cf6792ec40
commit
06d9451551
3 changed files with 17 additions and 2 deletions
|
@ -0,0 +1,13 @@
|
|||
<script src="include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
function ic(o) {
|
||||
return o.foo
|
||||
}
|
||||
|
||||
window.foo = 123
|
||||
println(ic(window))
|
||||
delete window.foo
|
||||
println(ic(window))
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue