wallet-core/node_modules/core-js/modules/$.fails-is-regexp.js

12 lines
245 B
JavaScript
Raw Normal View History

2017-05-03 15:35:00 +02:00
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;
};