blob: 2957e70f588a51de0506b47577259c989f4febd1 [file] [log] [blame]
<!DOCTYPE html>
<div>Test passes if it does not crash</div>
<script>
if (window.testRunner) testRunner.dumpAsText();
var div = document.createElement('div');
var span = document.createElement('span');
div.appendChild(span);
var observer = new MutationObserver(function(){});
observer.observe(div, { attributes: true, subtree: true });
div.removeChild(span); // cause span to become transiently observed
div = null;
gc(); // collect div's wrapper
observer.disconnect();
</script>