author Tom Schuster <>
Sun, 14 Jun 2020 18:59:08 +0000
changeset 535622 c68fe15a81fc2dc9fc5765f3be2573519c09b6c1
parent 9924 b32d94555318a6bd2448aa18e751fac1404b92a8
permissions -rw-r--r--
Bug 1644878 - Don't define Map/Set identical iterator methods in self-hosted JS. r=arai I think we were defining those methods in self-hosted JS, because that automatically gives us the property that they all have the same identity. This causes bad error messages. Instead redefine them in the finishInit ClassSpec hook. We still have the "wrong" methods in the 'methods' array so that JSXray tests continue to pass. Differential Revision:

<html class="reftest-wait">

function boom()
  document.getElementById("M").style.width = "6em";


<body onload="setTimeout(boom, 30);">

<div style="position:absolute; top: 50px; left: 50px; border: 2px solid orange;">

    <option id="M">M</option>
  <select style="width: 200%">
    <option style="visibility: collapse; overflow: auto; display: table-footer-group;">X</option>