// ESM stack frames name the guest's file:// URL and its own line numbers. import { make } from "./esmstack-dep.mjs"; const where = (e) => e.stack.split("\n").map((l) => l.match(/(file:\/\/\/\S+?\.mjs):(\d+):(\d+)/)).find(Boolean).slice(1).join(":"); console.log(where(new Error("entry"))); console.log(where(make()));