Skip to content

Commit

Permalink
add a workaround for a bug of rollup, fix #494
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Mar 12, 2019
1 parent 6ada5c9 commit edc0878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-js/modules/es.string.split.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var min = Math.min;
var MAX_UINT32 = 0xffffffff;

// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError
var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); });
var SUPPORTS_Y = !fails(function () { return !RegExp(MAX_UINT32, 'y'); });

// @@split logic
require('../internals/fix-regexp-well-known-symbol-logic')(
Expand Down

0 comments on commit edc0878

Please sign in to comment.