If running original source on a large number of files, the following error may occur:
Error: EMFILE, Too many open files 'js/shjs/lang/sh_python.js'
This change fixes this problem by processing files one batch at a time. The size of each batch is defaulted to 100, but easily changeable by specifying the batchCount parameter.
This is backwards compatible with the original module.
Process files one batch at a time to prevent (too many files open error)
Thank you very much. This looks good.
I already noticed this issue, but didn't have the time to fix it, yet. You helped me a lot.