MCPcopy
hub / github.com/CodeSeven/toastr / sourceFromStacktrace

Function sourceFromStacktrace

tests/qunit/qunit.js:1403–1409  ·  view source on GitHub ↗
( offset )

Source from the content-addressed store, hash-verified

1401 }
1402}
1403function sourceFromStacktrace( offset ) {
1404 try {
1405 throw new Error();
1406 } catch ( e ) {
1407 return extractStacktrace( e, offset );
1408 }
1409}
1410
1411/**
1412 * Escape text for attribute or text content.

Callers 1

qunit.jsFile · 0.85

Calls 1

extractStacktraceFunction · 0.85

Tested by

no test coverage detected