Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/none/deps.ts>callsites

Minimal boilerplate blogging.
Go to Latest
function callsites
import { callsites } from "https://deno.land/x/none@v0.0.2/deps.ts";

Returns the list of CallSite objects from the V8 stack trace API.

import callsites from "";
function foo() {
  console.log(callsites()[0].getFileName());
  // => file:///path/to/file.js
}
foo();

Returns

CallSite[]