first
This commit is contained in:
16
node_modules/core-js/internals/correct-is-regexp-logic.js
generated
vendored
Normal file
16
node_modules/core-js/internals/correct-is-regexp-logic.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
var wellKnownSymbol = require('../internals/well-known-symbol');
|
||||
|
||||
var MATCH = wellKnownSymbol('match');
|
||||
|
||||
module.exports = function (METHOD_NAME) {
|
||||
var regexp = /./;
|
||||
try {
|
||||
'/./'[METHOD_NAME](regexp);
|
||||
} catch (error1) {
|
||||
try {
|
||||
regexp[MATCH] = false;
|
||||
return '/./'[METHOD_NAME](regexp);
|
||||
} catch (error2) { /* empty */ }
|
||||
} return false;
|
||||
};
|
Reference in New Issue
Block a user