Opal-Estate-Pro/node_modules/core-js/modules/_fails-is-regexp.js

13 lines
251 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +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;
};