create project
This commit is contained in:
9
kitabcitab/node_modules/core-js-pure/internals/not-a-regexp.js
generated
vendored
Normal file
9
kitabcitab/node_modules/core-js-pure/internals/not-a-regexp.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
var isRegExp = require('../internals/is-regexp');
|
||||
|
||||
var $TypeError = TypeError;
|
||||
|
||||
module.exports = function (it) {
|
||||
if (isRegExp(it)) {
|
||||
throw $TypeError("The method doesn't accept regular expressions");
|
||||
} return it;
|
||||
};
|
||||
Reference in New Issue
Block a user