-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
"max buffer exceeded" error #13
Comments
The code:
|
I cannot reproduce, are you sure you update tdewolff/parse lately for I pushed tdewolff/parse@9e980e5 with a bugfix. |
Yes, the error still the same.. |
minimum code to reproduce:
output:
ace.js downloaded from https://raw.githubusercontent.com/ajaxorg/ace-builds/master/src/ace.js |
The problem is that ace.js contains a very very long string which exceeds the maximum buffer limit. This limit is set to 4096 bytes in https://github.com/tdewolff/parse/blob/master/shiftbuffer.go#L10 But the string is 11508 characters long, I drastically increased the limit, but one can do this manually too. tdewolff/parse@dd3690f Additionally, this is fixed by 69eb7cf by using the provided slice which sets no size limit. |
I got them while minifying:
AceJS: https://github.com/ajaxorg/ace-builds/blob/master/src/ace.js 615.6 KiB (630,413 bytes)
and jquery.dataTables.js: http://datatables.net/download/ 424.8 KiB (434,957 bytes)
any solution for this case?
The text was updated successfully, but these errors were encountered: