UNPKG
@miniu/core-js
Version:
latest (2.6.12)
2.6.12
Standard library
github.com/zloirock/core-js
zloirock/core-js
@miniu/core-js
/
modules
/
_fails-is-regexp.js
13 lines
(12 loc)
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
MATCH
=
require
(
'./_wks'
)(
'match'
);
module
.
exports
=
function
(
KEY
) {
var
re =
/./
;
try
{
'/./'
[
KEY
](re); }
catch
(e) {
try
{ re[
MATCH
] =
false
;
return
!
'/./'
[
KEY
](re); }
catch
(f) {
/* empty */
} }
return
true
; };