'use strict';varclassof=require('./_classof');varbuiltinExec=RegExp.prototype.exec;// `RegExpExec` abstract operation// https://tc39.github.io/ecma262/#sec-regexpexecmodule.exports=function(R,S){varexec=R.exec;if(typeofexec==='function'){varresult=exec.call(R,S);if(typeofresult!=='object'){thrownewTypeError('RegExp exec method returned something other than an Object or null');}returnresult;}if(classof(R)!=='RegExp'){thrownewTypeError('RegExp#exec called on incompatible receiver');}returnbuiltinExec.call(R,S);};