Remove unnecessary inheritance from `Function` class

This commit is contained in:
Joshua Lochner 2023-04-18 17:10:09 +02:00
parent aba491e942
commit 47b256a92a
1 changed files with 1 additions and 4 deletions

View File

@ -407,15 +407,12 @@ function escapeRegExp(string) {
/**
* A base class for creating callable objects.
*
* @extends Function
*/
class Callable extends Function {
class Callable {
/**
* Creates a new instance of the Callable class.
*/
constructor() {
super();
/**
* Creates a closure that delegates to a private method '_call' with the given arguments.
*