GT2/Ejectable/node_modules/core-js/modules/$.fails-is-regexp.js

12 lines
245 B
JavaScript

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;
};