Skip to content
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

Fix regression #463 #465

Merged
merged 1 commit into from
Dec 17, 2018
Merged

Conversation

nicolo-ribaudo
Copy link
Contributor

Fixes #463

The minifier correctly inlines an overwritten function, leading to a call
stack overflow error. This commit refactors the code a bit to prevent
the mifnier from inlining that variable.
@nicolo-ribaudo nicolo-ribaudo changed the base branch from master to v2 December 17, 2018 22:14
@@ -6308,9 +6412,11 @@ __webpack_require__(59)('split', 2, function (defined, SPLIT, $split) {
};
// Chakra, V8
} else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
$split = function (separator, limit) {
internalSplit = function (separator, limit) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change in the compiled output is what actually fixes the bug.

@zloirock zloirock merged commit 3866e96 into zloirock:v2 Dec 17, 2018
@nicolo-ribaudo nicolo-ribaudo deleted the fix-regression-463 branch December 17, 2018 22:55
zloirock added a commit that referenced this pull request Dec 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants