Closed Jack-Works closed 2 years ago
I would expect every builtin constructor to have a matcher that checks for the presence of the internal slot its instances are expected to have.
I would expect every builtin constructor to have a matcher that checks for the presence of the internal slot its instances are expected to have.
For example, does TypeError has its own internal slot so we can distinguish it from Error?
Good question, but yes, I would expect it to validate that it's a TypeError and not another kind of error object.
mostly done.
Symbol.matcher