MCPcopy
hub / github.com/SeleniumHQ/selenium / sourceFromStacktrace

Function sourceFromStacktrace

third_party/js/qunit/qunit.js:1527–1540  ·  view source on GitHub ↗
(offset)

Source from the content-addressed store, hash-verified

1525 }
1526 }
1527 function sourceFromStacktrace(offset) {
1528 var error = new Error();
1529
1530 // Support: Safari <=7 only, IE <=10 - 11 only
1531 // Not all browsers generate the `stack` property for `new Error()`, see also #636
1532 if (!error.stack) {
1533 try {
1534 throw error;
1535 } catch (err) {
1536 error = err;
1537 }
1538 }
1539 return extractStacktrace(error, offset);
1540 }
1541
1542 var Assert = /*#__PURE__*/function () {
1543 function Assert(testContext) {

Callers 4

qunit.jsFile · 0.85
runTestFunction · 0.85
pushFailureFunction · 0.85
onUncaughtExceptionFunction · 0.85

Calls 1

extractStacktraceFunction · 0.85

Tested by

no test coverage detected