Skip to main content
Module

x/deno/js/types.ts>CallSite

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface CallSite
import { type CallSite } from "https://deno.land/x/deno@v0.1.12/js/types.ts";

Methods

getThis(): any

Value of this

getTypeName(): string | null

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.

getFunction(): Function | undefined

Current function.

getFunctionName(): string | null

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.

getMethodName(): string | null

Name of the property (of this or one of its prototypes) that holds the current function.

getFileName(): string | null

Name of the script (if this function was defined in a script).

getScriptNameOrSourceURL(): string

Get the script name or source URL for the source map.

getLineNumber(): number | null

Current line number (if this function was defined in a script).

getColumnNumber(): number | null

Current column number (if this function was defined in a script).

getEvalOrigin(): string | undefined

A call site object representing the location where eval was called (if this function was created using a call to eval)

isToplevel(): boolean

Is this a top level invocation, that is, is this the global object?

isEval(): boolean

Does this call take place in code defined by a call to eval?

isNative(): boolean

Is this call in native V8 code?

isConstructor(): boolean

Is this a constructor call?