test262/test/built-ins/Promise
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
..
Symbol.species
all
allSettled
any
prototype
race
reject
resolve
constructor.js
create-resolving-functions-reject.js
create-resolving-functions-resolve.js
exception-after-resolve-in-executor.js
exception-after-resolve-in-thenable-job.js
exec-args.js
executor-call-context-sloppy.js
executor-call-context-strict.js
executor-function-extensible.js
executor-function-length.js
executor-function-name.js
executor-function-not-a-constructor.js
executor-function-property-order.js
executor-function-prototype.js
executor-not-callable.js
get-prototype-abrupt-executor-not-callable.js
get-prototype-abrupt.js
is-a-constructor.js
length.js
name.js
promise.js
property-order.js
proto-from-ctor-realm.js
reject-function-extensible.js
reject-function-length.js
reject-function-name.js
reject-function-nonconstructor.js
reject-function-property-order.js
reject-function-prototype.js
reject-ignored-via-abrupt.js
reject-ignored-via-fn-deferred.js
reject-ignored-via-fn-immed.js
reject-via-abrupt-queue.js
reject-via-abrupt.js
reject-via-fn-deferred-queue.js
reject-via-fn-deferred.js
reject-via-fn-immed-queue.js
reject-via-fn-immed.js
resolve-function-extensible.js
resolve-function-length.js
resolve-function-name.js
resolve-function-nonconstructor.js
resolve-function-property-order.js
resolve-function-prototype.js
resolve-ignored-via-fn-deferred.js
resolve-ignored-via-fn-immed.js
resolve-non-obj-deferred.js
resolve-non-obj-immed.js
resolve-non-thenable-deferred.js
resolve-non-thenable-immed.js
resolve-poisoned-then-deferred.js
resolve-poisoned-then-immed.js
resolve-prms-cstm-then-deferred.js
resolve-prms-cstm-then-immed.js
resolve-self.js
resolve-thenable-deferred.js
resolve-thenable-immed.js
undefined-newtarget.js