projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
massive update, probably broken
[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
};