jugglinmike 5093c3037d
Reject exceptional input to isConstructor (#3748)
* Reject exceptional input to `isConstructor`

Prior to this commit, the `isConstructor` harness function would return
`false` when invoked with a value that lacked a [[Call]] internal
method. While it's true that such values are not constructors, there are
no tests which benefit from using `isConstructor` to make such an
assertion.

Extend `isConstructor` to throw an error when invoked with a
non-function object. Update a test which was misleadingly invoking the
function with the value `undefined`.

* fixup! Reject exceptional input to `isConstructor`
2022-12-15 22:53:34 -05:00
..
2015-04-22 18:38:40 -04:00
2016-02-22 09:47:42 -05:00
2016-02-22 09:47:42 -05:00
2017-06-28 11:53:59 -04:00
2017-06-28 11:53:59 -04:00