test262/test/harness
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
..
assert-false.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-notsamevalue-nan.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-notsamevalue-notsame.js Add tests for test harness 2015-04-22 18:38:40 -04:00
assert-notsamevalue-objects.js Add tests for test harness 2015-04-22 18:38:40 -04:00
assert-notsamevalue-tostring.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-notsamevalue-zeros.js Add tests for test harness 2015-04-22 18:38:40 -04:00
assert-obj.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-samevalue-nan.js Add tests for test harness 2015-04-22 18:38:40 -04:00
assert-samevalue-objects.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-samevalue-same.js Add tests for test harness 2015-04-22 18:38:40 -04:00
assert-samevalue-tostring.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-samevalue-zeros.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-throws-custom-typeerror.js Add identity tests for the assert.throws 2021-09-21 16:45:27 -04:00
assert-throws-custom.js Add tests for test harness 2015-04-22 18:38:40 -04:00
assert-throws-incorrect-ctor.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-throws-native.js Remove explicit sta.js includes 2018-10-15 12:45:55 -04:00
assert-throws-no-arg.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-throws-no-error.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-throws-null-fn.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-throws-null.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-throws-primitive.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-throws-same-realm.js Add identity tests for the assert.throws 2021-09-21 16:45:27 -04:00
assert-throws-single-arg.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-tostring.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
assert-true.js Add tests for test harness 2015-04-22 18:38:40 -04:00
assertRelativeDateMs.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
byteConversionValues.js Add harness for byte conversion values 2016-05-25 10:10:50 -04:00
compare-array-arguments.js fix: corrections to assert.compareArray and assert.compareArray.format (#3226) 2021-10-01 12:52:15 -04:00
compare-array-arraylike.js fix: corrections to assert.compareArray and assert.compareArray.format (#3226) 2021-10-01 12:52:15 -04:00
compare-array-different-elements.js fix: corrections to assert.compareArray and assert.compareArray.format (#3226) 2021-10-01 12:52:15 -04:00
compare-array-different-length.js fix: corrections to assert.compareArray and assert.compareArray.format (#3226) 2021-10-01 12:52:15 -04:00
compare-array-empty.js fix: corrections to assert.compareArray and assert.compareArray.format (#3226) 2021-10-01 12:52:15 -04:00
compare-array-falsy-arguments.js Gracefully handle nullish arguments in harness/compareArray 2020-08-31 15:17:24 -04:00
compare-array-message.js fix: ensure that symbol args as message don't break assert.compareArray 2021-10-05 15:16:53 -04:00
compare-array-same-elements-different-order.js fix: corrections to assert.compareArray and assert.compareArray.format (#3226) 2021-10-01 12:52:15 -04:00
compare-array-same-elements-same-order.js fix: corrections to assert.compareArray and assert.compareArray.format (#3226) 2021-10-01 12:52:15 -04:00
compare-array-samevalue.js fix: corrections to assert.compareArray and assert.compareArray.format (#3226) 2021-10-01 12:52:15 -04:00
compare-array-sparse.js fix: corrections to assert.compareArray and assert.compareArray.format (#3226) 2021-10-01 12:52:15 -04:00
compare-array-symbol.js fix: corrections to assert.compareArray and assert.compareArray.format (#3226) 2021-10-01 12:52:15 -04:00
dateConstants.js harness test: dateConstants.js 2017-06-28 11:53:59 -04:00
decimalToHexString.js harness test: decimalToHexString.js 2017-06-28 11:53:59 -04:00
deepEqual-array.js Whitespace cleanups. CRLF => LF 2019-10-08 20:44:09 -04:00
deepEqual-circular.js Whitespace cleanups. CRLF => LF 2019-10-08 20:44:09 -04:00
deepEqual-deep.js Whitespace cleanups. CRLF => LF 2019-10-08 20:44:09 -04:00
deepEqual-mapset.js Whitespace cleanups. CRLF => LF 2019-10-08 20:44:09 -04:00
deepEqual-object.js Whitespace cleanups. CRLF => LF 2019-10-08 20:44:09 -04:00
deepEqual-primitives-bigint.js Split deepEqual tests requiring bigint (#2352) 2019-09-18 17:55:27 -03:00
deepEqual-primitives.js Split deepEqual tests requiring bigint (#2352) 2019-09-18 17:55:27 -03:00
detachArrayBuffer-host-detachArrayBuffer.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
detachArrayBuffer.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
fnGlobalObject.js harness test: fnGlobalObject.js 2017-06-28 11:53:59 -04:00
isConstructor.js Reject exceptional input to `isConstructor` (#3748) 2022-12-15 22:53:34 -05:00
nans.js Don't compute NaN values in functions (#1503) 2018-03-22 20:20:29 -04:00
nativeFunctionMatcher.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
promiseHelper.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
propertyhelper-verifyconfigurable-configurable-object.js Correct bug in property helper (#2364) 2019-09-24 16:05:30 -04:00
propertyhelper-verifyconfigurable-configurable.js Add tests for test harness 2015-04-22 18:38:40 -04:00
propertyhelper-verifyconfigurable-not-configurable.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
propertyhelper-verifyenumerable-enumerable-symbol.js Fix verifyEnumerable helper to account for Symbol properties 2016-03-15 10:13:52 -04:00
propertyhelper-verifyenumerable-enumerable.js Fix verifyEnumerable helper to account for Symbol properties 2016-03-15 10:13:52 -04:00
propertyhelper-verifyenumerable-not-enumerable-symbol.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
propertyhelper-verifyenumerable-not-enumerable.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
propertyhelper-verifynotconfigurable-configurable.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
propertyhelper-verifynotconfigurable-not-configurable.js Consolidate harness tests (#2374) 2019-09-27 16:24:02 -04:00
propertyhelper-verifynotenumerable-enumerable-symbol.js Remove explicit sta.js includes 2018-10-15 12:45:55 -04:00
propertyhelper-verifynotenumerable-enumerable.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
propertyhelper-verifynotenumerable-not-enumerable-symbol.js Frontmatter: fixup "description: |" to "description: >" 2018-01-05 12:29:17 -05:00
propertyhelper-verifynotenumerable-not-enumerable.js Frontmatter: fixup "description: |" to "description: >" 2018-01-05 12:29:17 -05:00
propertyhelper-verifynotwritable-not-writable-strict.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
propertyhelper-verifynotwritable-writable.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
propertyhelper-verifywritable-array-length.js Fix isWritable throwing RangeError on Array "length" 2020-03-23 14:49:12 -04:00
propertyhelper-verifywritable-not-writable.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
propertyhelper-verifywritable-writable.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
proxytrapshelper-default.js s/id/esid 2016-02-22 09:47:42 -05:00
proxytrapshelper-overrides.js s/id/esid 2016-02-22 09:47:42 -05:00
sta.js chore: migrate $ERROR -> throw new Test262Error in harness/ & test/harness 2021-07-21 15:15:55 -04:00
tcoHelper.js harness test: tcoHelper.js 2017-06-28 11:53:59 -04:00
temporalHelpers-cross-date-line-time-zone.js Temporal: Add TemporalHelpers.crossDateLineTimeZone 2022-10-03 12:24:00 +02:00
temporalHelpers-one-shift-time-zone.js Fix arithmetic in TemporalHelpers.oneShiftTimeZone 2022-04-04 16:24:17 -04:00
testTypedArray-conversions-call-error.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
testTypedArray-conversions.js Missing features in the test/harness files (#1222) 2017-09-11 16:36:58 -04:00
testTypedArray.js Remove redundancy from test for testTypedArray.js 2021-10-29 15:20:45 -04:00
timer.js harness test: timer.js 2017-06-28 11:53:59 -04:00
verifyProperty-arguments.js Remove explicit sta.js includes 2018-10-15 12:45:55 -04:00
verifyProperty-configurable-object.js Correct bug in property helper (#2364) 2019-09-24 16:05:30 -04:00
verifyProperty-desc-is-not-object.js Remove explicit sta.js includes 2018-10-15 12:45:55 -04:00
verifyProperty-noproperty.js Remove explicit sta.js includes 2018-10-15 12:45:55 -04:00
verifyProperty-restore-accessor-symbol.js Add missing Symbol features flags 2017-09-07 15:51:13 -04:00
verifyProperty-restore-accessor.js Add Verify Property harness (#979) 2017-04-15 12:56:29 -04:00
verifyProperty-restore-symbol.js Add missing Symbol features flags 2017-09-07 15:51:13 -04:00
verifyProperty-restore.js Add Verify Property harness (#979) 2017-04-15 12:56:29 -04:00
verifyProperty-same-value.js Use SameValue in verifyProperty helper (#2185) 2019-06-12 14:14:14 -04:00
verifyProperty-string-prop.js Add Verify Property harness (#979) 2017-04-15 12:56:29 -04:00
verifyProperty-symbol-prop.js Add missing Symbol features flags 2017-09-07 15:51:13 -04:00
verifyProperty-undefined-desc.js Remove explicit sta.js includes 2018-10-15 12:45:55 -04:00
verifyProperty-value-error.js Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
verifyProperty-value.js Update verifyProperty to allow checking `value` 2017-06-23 11:58:16 -04:00