rest-boubou
Version:
RESTful HTTP client library
29 lines (23 loc) • 435 B
JavaScript
/*
* Copyright 2013 the original author or authors
* @license MIT, see LICENSE.txt for details
*
* @author Scott Andrews
*/
(function (buster) {
'use strict';
var fail;
fail = buster.assertions.fail;
buster.assertions.failOnThrow = function failOnThrow(func) {
return function () {
try {
return func.apply(this, arguments);
}
catch (e) {
fail(e);
}
};
};
}(
this.buster || require('buster')
));