summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/error/valid-error.js
blob: 0bef768a776d09e0653279dd2037adffdaa6d70d (plain)
1
2
3
4
5
6
7
8
'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;
};