es.regexp.exec.js 274 B

123456789
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var exec = require('../internals/regexp-exec');
  4. // `RegExp.prototype.exec` method
  5. // https://tc39.es/ecma262/#sec-regexp.prototype.exec
  6. $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
  7. exec: exec
  8. });