Skip to content

Commit

Permalink
port #465 to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Dec 18, 2018
1 parent fbb91a3 commit a1d41d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core-js/modules/es.string.split.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require('../internals/fix-regexp-well-known-symbol-logic')(
'split',
2,
function (defined, SPLIT, nativeSplit, maybeCallNative) {
var internalSplit = nativeSplit;
var internalSplit;
if (
'abbc'.split(/(b)*/)[1] == 'c' ||
'test'.split(/(?:)/, -1)[LENGTH] != 4 ||
Expand Down Expand Up @@ -67,7 +67,7 @@ require('../internals/fix-regexp-well-known-symbol-logic')(
internalSplit = function (separator, limit) {
return separator === undefined && limit === 0 ? [] : nativeSplit.call(this, separator, limit);
};
}
} else internalSplit = nativeSplit;

return [
// `String.prototype.split` method
Expand Down

0 comments on commit a1d41d0

Please sign in to comment.