MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / asyncWrapper

Function asyncWrapper

lib/container.js:532–539  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

530
531function createSupportObjects(config) {
532 const asyncWrapper = function (f) {
533 return function () {
534 return f.apply(this, arguments).catch(e => {
535 recorder.saveFirstAsyncError(e)
536 throw e
537 })
538 }
539 }
540
541 function lazyLoad(name) {
542 return new Proxy(

Callers 1

getFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected