ethers.js/src.browser/throw-error.ts
2018-06-13 15:39:39 -04:00

12 lines
209 B
TypeScript

'use strict';
function throwError(message, params) {
var error = new Error(message);
for (var key in params) {
error[key] = params[key];
}
throw error;
}
module.exports = throwError;