diff --git a/lib/types/alternatives/index.js b/lib/types/alternatives/index.js index c1e6eb637..3e5c2c33f 100644 --- a/lib/types/alternatives/index.js +++ b/lib/types/alternatives/index.js @@ -150,7 +150,7 @@ internals.Alternatives = class extends Any { describe() { - const description = Any.prototype.describe.call(this); + const description = super.describe(); const alternatives = []; for (let i = 0; i < this._inner.matches.length; ++i) { const item = this._inner.matches[i]; diff --git a/lib/types/array/index.js b/lib/types/array/index.js index 1c51107b0..6e279188e 100644 --- a/lib/types/array/index.js +++ b/lib/types/array/index.js @@ -311,7 +311,7 @@ internals.Array = class extends Any { describe() { - const description = Any.prototype.describe.call(this); + const description = super.describe(); if (this._inner.ordereds.length) { description.orderedItems = []; diff --git a/lib/types/boolean/index.js b/lib/types/boolean/index.js index acbc2ecf2..a9ef57750 100644 --- a/lib/types/boolean/index.js +++ b/lib/types/boolean/index.js @@ -87,7 +87,7 @@ internals.Boolean = class extends Any { describe() { - const description = Any.prototype.describe.call(this); + const description = super.describe(); description.truthy = [true].concat(this._inner.truthySet.values()); description.falsy = [false].concat(this._inner.falsySet.values()); return description; diff --git a/lib/types/object/index.js b/lib/types/object/index.js index 30317f1d2..5b1927004 100644 --- a/lib/types/object/index.js +++ b/lib/types/object/index.js @@ -615,7 +615,7 @@ internals.Object = class extends Any { describe(shallow) { - const description = Any.prototype.describe.call(this); + const description = super.describe(); if (description.rules) { for (let i = 0; i < description.rules.length; ++i) {