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/date/valid-date.js
blob: 7d1a9b60d4748a998bea5ff3e5cadb79b082cbfa (plain)
1
2
3
4
5
6
7
8
'use strict';

var isDate = require('./is-date');

module.exports = function (x) {
	if (!isDate(x)) throw new TypeError(x + " is not a Date object");
	return x;
};