Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CallSite

Index

Methods

getColumnNumber

  • getColumnNumber(): number | null
  • Returns the current column number if this function was defined in a script.

    Returns number | null

getEvalOrigin

  • getEvalOrigin(): string | undefined
  • Returns a string representing the location where eval was called if this function was created using a call to eval.

    Returns string | undefined

getFileName

  • getFileName(): string | null
  • Returns the name of the script if this function was defined in a script.

    Returns string | null

getFunction

  • getFunction(): Function | undefined
  • Returns the current function.

    Returns Function | undefined

getFunctionName

  • getFunctionName(): string | null
  • Returns the name of the current function, typically its name property. If a name property is not available an attempt will be made to try to infer a name from the function's context.

    Returns string | null

getLineNumber

  • getLineNumber(): number | null
  • Returns the current line number if this function was defined in a script.

    Returns number | null

getMethodName

  • getMethodName(): string | undefined
  • Returns the name of the property of this or one of its prototypes that holds the current function.

    Returns string | undefined

getThis

  • getThis(): unknown | undefined
  • Returns the value of this.

    Returns unknown | undefined

getTypeName

  • getTypeName(): string | null
  • Returns the type of this as a string. This is the name of the function stored in the constructor field of this, if available, otherwise the object's [[Class]] internal property.

    Returns string | null

isConstructor

  • isConstructor(): boolean
  • Returns true if this is a constructor call.

    Returns boolean

isEval

  • isEval(): boolean
  • Returns true if this call takes place in code defined by a call to eval.

    Returns boolean

isNative

  • isNative(): boolean
  • Returns true if this call is in native V8 code.

    Returns boolean

isToplevel

  • isToplevel(): boolean
  • Returns true if this is a top-level invocation, that is, if it's a global object.

    Returns boolean

Generated using TypeDoc