wed
Version:
Wed is a schema-aware editor for XML documents.
22 lines (19 loc) • 426 B
JavaScript
define(function(require,exports,module){
import { errorObject } from './errorObject';
let tryCatchTarget;
function tryCatcher() {
try {
return tryCatchTarget.apply(this, arguments);
}
catch (e) {
errorObject.e = e;
return errorObject;
}
}
export function tryCatch(fn) {
tryCatchTarget = fn;
return tryCatcher;
}
//# sourceMappingURL=tryCatch.js.map
return module.exports;
});