main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 2 weeks ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
242 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 | var isRegExp = require('../internals/is-regexp');
|
---|
| 3 |
|
---|
| 4 | var $TypeError = TypeError;
|
---|
| 5 |
|
---|
| 6 | module.exports = function (it) {
|
---|
| 7 | if (isRegExp(it)) {
|
---|
| 8 | throw new $TypeError("The method doesn't accept regular expressions");
|
---|
| 9 | } return it;
|
---|
| 10 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.