Skip to content

Prevent 'too much recursion' error in FF@linux

the-very requested to merge github/fork/h4/bug/tooManyRecursion into master

Created by: h4

This summer we got error 'too much recursion' in our project that uses bem-core.

This error happens only in Firefox under linux (yeah, Ubuntu) and only if we have lot modules in one file (~200 in our case).

Delay applying declarations with wrap in nextTick fix this problem (this solution was found in https://github.com/pouchdb/pouchdb/issues/1156#issuecomment-31136504).

Merge request reports