blob: 9a14d1845e1de8e439c8c9f7fb0ca85f92291556 [file] [log] [blame]
<DOCTYPE html>
<html>
<body>
<script src="../../resources/js-test.js"></script>
<script>
description("Tests that XMLHttpRequest.upload always returns the same object.");
jsTestIsAsync = true;
let xhr = new XMLHttpRequest();
xhr.upload.foo = 1;
gc();
setTimeout(() => {
gc();
shouldBe("xhr.upload.foo", "1");
finishJSTest();
}, 0);
</script>
</body>
</html>