diff --git a/packages/core-js/modules/es.string.split.js b/packages/core-js/modules/es.string.split.js index 1a3601c72a7a..a229737accef 100644 --- a/packages/core-js/modules/es.string.split.js +++ b/packages/core-js/modules/es.string.split.js @@ -13,8 +13,8 @@ var arrayPush = [].push; var min = Math.min; var MAX_UINT32 = 0xffffffff; -// eslint-disable-next-line no-new -var SUPPORTS_Y = !fails(function () { new RegExp('x', 'y'); }); +// babel-minify transpiles RegExp('x', 'y') -> /x/y and it causes SyntaxError +var SUPPORTS_Y = !fails(function () { RegExp(MAX_UINT32, 'y'); }); // @@split logic require('../internals/fix-regexp-well-known-symbol-logic')(