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