MCPcopy
hub / github.com/10bestdesign/jqvmap / sourceFromStacktrace

Function sourceFromStacktrace

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

Source from the content-addressed store, hash-verified

536 }
537
538 function sourceFromStacktrace( offset ) {
539 var error = new Error();
540
541 // Support: Safari <=7 only, IE <=10 - 11 only
542 // Not all browsers generate the `stack` property for `new Error()`, see also #636
543 if ( !error.stack ) {
544 try {
545 throw error;
546 } catch ( err ) {
547 error = err;
548 }
549 }
550
551 return extractStacktrace( error, offset );
552 }
553
554 function synchronize( callback, last ) {
555 if ( QUnit.objectType( callback ) === "array" ) {

Callers 3

qunit.jsFile · 0.85
pauseProcessingFunction · 0.85
TestFunction · 0.85

Calls 1

extractStacktraceFunction · 0.85

Tested by

no test coverage detected