split.js 362 B

1234567891011
  1. 'use strict';
  2. require('../../modules/es.regexp.exec');
  3. require('../../modules/es.string.split');
  4. var call = require('../../internals/function-call');
  5. var wellKnownSymbol = require('../../internals/well-known-symbol');
  6. var SPLIT = wellKnownSymbol('split');
  7. module.exports = function (it, str, limit) {
  8. return call(RegExp.prototype[SPLIT], it, str, limit);
  9. };