summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/test/reg-exp/is-reg-exp.js
blob: 785ca28c2ecb2cf87cde38bbc90b2c8169af1f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';

module.exports = function (t, a) {
	a(t('arar'), false, "String");
	a(t(12), false, "Number");
	a(t(true), false, "Boolean");
	a(t(new Date()), false, "Date");
	a(t(new String('raz')), false, "String object");
	a(t({}), false, "Plain object");
	a(t(/a/), true, "Regular expression");
	a(t(new RegExp('a')), true, "Regular expression via constructor");
};