You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlike #738, here I lean toward making them non-enumerable, as these objects are in some sense "entirely ECMAScript-like". The method in question doesn't share a location with enumerable methods corresponding to Web IDL operations.
But, I don't care that much. If we want to keep these enumerable, we should at least add a note about the intentional divergence from ECMAScript.
The text was updated successfully, but these errors were encountered:
I don't have strong opinions on this either, apart from possible implementation difficulty (e.g. Gecko currently synthesizes non-exposed IDL interfaces for the iterator, and we don't have an obvious way to make stuff there non-enumerable, iirc).
Currently
<script>
var i = (new URLSearchParams())[Symbol.iterator]();
document.write(Object.getOwnPropertyDescriptor(Object.getPrototypeOf(i), "next").enumerable);
</script>
https://heycam.github.io/webidl/#es-iterator-prototype-object (and the corresponding part of #720) says they are. Their ECMAScript counterparts are not.
Unlike #738, here I lean toward making them non-enumerable, as these objects are in some sense "entirely ECMAScript-like". The method in question doesn't share a location with enumerable methods corresponding to Web IDL operations.
But, I don't care that much. If we want to keep these enumerable, we should at least add a note about the intentional divergence from ECMAScript.
The text was updated successfully, but these errors were encountered: