Files
ola5doc/sys/node_modules/es5-ext/error/valid-error.js
T

9 lines
169 B
JavaScript

'use strict';
var isError = require('./is-error');
module.exports = function (x) {
if (!isError(x)) throw new TypeError(x + " is not an Error object");
return x;
};