projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8bf1826e7543996880a4219015d9f18b7d57c90c
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
core-js
/
internals
/
not-a-regexp.js
1
var global = require('../internals/global');
2
var isRegExp = require('../internals/is-regexp');
3
4
var TypeError = global.TypeError;
5
6
module.exports = function (it) {
7
if (isRegExp(it)) {
8
throw TypeError("The method doesn't accept regular expressions");
9
} return it;
10
};