mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:27:43 +00:00
LibWeb: Add special handling for WindowProxy in [Replaceable] setters
Setters for Window object should consider WindowProxy wrapper by: - Verifying `this_value` is `WindowProxy` (not `HTML::Window`) - Defining properties on the underlying Window object instead of on the WindowProxy itself.
This commit is contained in:
parent
9b1b8828b4
commit
1528e9109c
3 changed files with 24 additions and 1 deletions
|
@ -0,0 +1,7 @@
|
|||
<script src="include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
window.event = "hello";
|
||||
println(window.event);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue