• JavaScript
  • Standard built-in objects
  • Function()
  • Instance methods
    1. toString()
    2. displayName Non-standard
    3. arguments Non-standard Deprecated
    4. caller Non-standard Deprecated
  • call()
  • displayName Non-standard
  • arguments Non-standard Deprecated
  • caller Non-standard Deprecated
  • Instance methods
    1. __defineGetter__() Deprecated
    2. __defineSetter__() Deprecated
    3. __lookupGetter__() Deprecated
    4. __lookupSetter__() Deprecated
    5. toLocaleString()
    6. __proto__ Deprecated
    7. async functions. In JavaScript, every async function is actually an AsyncFunction object.

      Note that AsyncFunction is not a global object. It can be obtained with the following code:

      js
      const AsyncFunction = async function () {}.constructor;
      

      AsyncFunction is a subclass of Function.

  • Constructor

    AsyncFunction()

    Creates a new AsyncFunction object.

    Instance properties

    Also inherits instance properties from its parent Function.

    These properties are defined on AsyncFunction.prototype and shared by all AsyncFunction instances.

    AsyncFunction.prototype.constructor

    The constructor function that created the instance object. For AsyncFunction instances, the initial value is the AsyncFunction constructor.

    AsyncFunction.prototype[Symbol.toStringTag]

    The initial value of the Object.prototype.toString().

    Note: AsyncFunction instances do not have the prototype property.

    Instance methods

    Inherits instance methods from its parent Function.

    Specifications

    Specification
    ECMAScript® 2026 Language Specification
    # sec-async-function-objects

    Browser compatibility

    See also