MCPcopy
hub / github.com/Mottie/Keyboard / sourceFromStacktrace

Function sourceFromStacktrace

testing/qunit-2.9.2.js:2565–2579  ·  view source on GitHub ↗
(offset)

Source from the content-addressed store, hash-verified

2563 }
2564
2565 function sourceFromStacktrace(offset) {
2566 var error = new Error();
2567
2568 // Support: Safari <=7 only, IE <=10 - 11 only
2569 // Not all browsers generate the `stack` property for `new Error()`, see also #636
2570 if (!error.stack) {
2571 try {
2572 throw error;
2573 } catch (err) {
2574 error = err;
2575 }
2576 }
2577
2578 return extractStacktrace(error, offset);
2579 }
2580
2581 var priorityCount = 0;
2582 var unitSampler = void 0;

Callers 7

qunit-2.9.2.jsFile · 0.85
TestFunction · 0.85
runTestFunction · 0.85
pushFailureFunction · 0.85
internalStopFunction · 0.85
internalStartFunction · 0.85
onUnhandledRejectionFunction · 0.85

Calls 1

extractStacktraceFunction · 0.85

Tested by

no test coverage detected