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
..
2021-09-02 11:34:18 -07:00
2021-07-21 12:48:13 -07:00
2021-07-21 12:48:13 -07:00
2022-12-15 22:53:34 -05:00
2021-10-04 15:38:08 -04:00
2021-09-02 11:34:18 -07:00
2021-09-02 11:34:18 -07:00
2022-01-05 17:27:58 -05:00
2019-05-22 17:33:09 -04:00
2020-10-06 12:01:34 -04:00
2020-10-06 12:01:34 -04:00
2018-01-05 12:27:59 -05:00
2018-01-05 12:27:59 -05:00
2018-01-05 12:27:59 -05:00
2019-05-22 17:33:09 -04:00
2019-05-22 17:33:09 -04:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2019-08-15 10:58:40 -04:00
2020-10-06 12:01:34 -04:00
2021-01-29 09:45:20 -05:00
2018-02-15 15:11:21 -05:00
2019-05-22 17:33:09 -04:00
2019-05-22 17:33:09 -04:00
2019-05-22 17:57:45 -04:00
2020-10-06 12:01:34 -04:00
2018-01-05 12:27:59 -05:00
2018-01-05 12:27:59 -05:00
2019-05-22 17:33:09 -04:00
2021-01-29 09:45:20 -05:00
2019-08-05 10:54:37 -04:00
2018-01-05 12:27:59 -05:00
2018-01-05 12:27:59 -05:00
2019-08-15 10:58:40 -04:00
2018-02-15 15:11:21 -05:00
2021-01-29 09:45:20 -05:00
2018-01-05 12:27:59 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-01-05 12:27:59 -05:00
2018-01-05 12:27:59 -05:00
2019-08-15 10:58:40 -04:00
2018-02-15 15:11:21 -05:00
2021-01-29 09:45:20 -05:00
2018-01-05 12:27:59 -05:00
2019-08-05 10:54:37 -04:00
2019-08-05 10:54:37 -04:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2018-02-15 15:11:21 -05:00
2019-05-22 17:33:09 -04:00