ladybird/Tests/LibWeb/Text/input/HTML/Window-iterate-properties.html
Tim Ledbetter dda730c46b LibWeb: Exclude [Global] interfaces from legacy platform object method
Previously, [Global] interfaces were not excluded from the
`internal_own_property_keys()` call. This caused a crash when iterating
over the properties of the Window object.
2024-04-26 20:02:21 +02:00

10 lines
222 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<div id="global-variable"></div>
<script>
test(() => {
for (const property in window) {
}
println("PASS (didn't crash)");
});
</script>