-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax Regular Expression Error in IE #479
Comments
@Chun-MingChen @waynelai614 could you add a code which causes a problem? |
@zloirock var SUPPORTS_Y = !!(function () { try { return new RegExp('x', 'y'); } catch (e) {} })(); https://github.com/zloirock/core-js/blob/v2/modules/es6.regexp.split.js#L17 IE didn't support both I'll cause error start from same issue from #372 |
It's calling of |
Maybe the problem in minified code and your minifier transpile |
Ok, I'll try to add a workaround for that. |
Also, it should be fixed on |
It's already filed babel/minify#928 |
@zloirock |
Nice work and great speed 🎉 |
Original issue submitted by @Chun-MingChen in babel/babel#9380
Bug Report
Current Behavior
core-js@2.6.x
start support sticky flagy
in modules/es6.regexp.split.jsUnfortunately, this feature IE didn't support (see http://kangax.github.io/compat-table/es6/#test-RegExp_y_and_u_flags).
ref: https://github.com/getify/You-Dont-Know-JS/blob/master/es6%20&%20beyond/ch2.md#sticky-flag
Possible Solution
Remove
^
in package.json.Babel Configuration (.babelrc, package.json, cli command)
Environment
6.5.2
8.14.0
The text was updated successfully, but these errors were encountered: