mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 04:55:00 +00:00

Instead of blindly dereferencing m_registered_observer_list, just use the add_registered_observer() helper. Fixes #22005
13 lines
397 B
HTML
13 lines
397 B
HTML
<body>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let observer = new MutationObserver(function() {});
|
|
observer.observe(document.body, { attributes: true, childList: true, subtree: true });
|
|
|
|
let div = document.createElement("div");
|
|
document.body.appendChild(div);
|
|
div.remove();
|
|
println("PASS! (Didn't crash)");
|
|
});
|
|
</script>
|