MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / parseStackUrlLineCol

Function parseStackUrlLineCol

packages/vite/hmr/entry-runtime.ts:12–19  ·  view source on GitHub ↗
(err: any)

Source from the content-addressed store, hash-verified

10declare const __NS_APP_ROOT_VIRTUAL__: string;
11
12function parseStackUrlLineCol(err: any): { url?: string; line?: number; column?: number } {
13 try {
14 const stack = (err && (err.stack || err.message)) || '';
15 const m = stack.match(/(https?:[^\s)]+):(\d+):(\d+)/);
16 if (m) return { url: m[1], line: Number(m[2] || 0), column: Number(m[3] || 0) };
17 } catch {}
18 return {};
19}
20
21async function fetchCodeframe(u: string, line?: number) {
22 try {

Callers 1

startEntryFunction · 0.85

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected