refactor: init cypress-cucumber-preprocessor install.
This commit is contained in:
21
node_modules/core-js/modules/_regexp-exec-abstract.js
generated
vendored
Normal file
21
node_modules/core-js/modules/_regexp-exec-abstract.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
var classof = require('./_classof');
|
||||
var builtinExec = RegExp.prototype.exec;
|
||||
|
||||
// `RegExpExec` abstract operation
|
||||
// https://tc39.github.io/ecma262/#sec-regexpexec
|
||||
module.exports = function (R, S) {
|
||||
var exec = R.exec;
|
||||
if (typeof exec === 'function') {
|
||||
var result = exec.call(R, S);
|
||||
if (typeof result !== 'object') {
|
||||
throw new TypeError('RegExp exec method returned something other than an Object or null');
|
||||
}
|
||||
return result;
|
||||
}
|
||||
if (classof(R) !== 'RegExp') {
|
||||
throw new TypeError('RegExp#exec called on incompatible receiver');
|
||||
}
|
||||
return builtinExec.call(R, S);
|
||||
};
|
Reference in New Issue
Block a user