Closed gnh1201 closed 3 years ago
This is "correct" in the sense that it's an enumerable string property on the prototype.
We could certainly make it non-enumerable in implementations that support it, and probably should. I'm not sure if WSH does or not, though.
It looks like we're already creating it as non-enumerable when supported, so this seems like something that's unavoidable in WSH (the implication is that it does not support Object.defineProperty for non-enumerables).
Happy to reopen if that's not the case.
For example:
Output:
I'm not sure if this is wrong or right.