Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Infinitive loop #275
I'm working with phantomjs and with certain conditions (don't know yet how to reproduce it), jasmine gets into a infinitive loop.
RangeError: Maximum call stack size exceeded.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I had the same problem using phantomjs and jasmine. Following the thread at johnbintz/jasmine-headless-webkit#84, I thought I might be having an issue with onPageLoaded in jasmineRunner.js getting called more than once and therefore firing window.onload more than once. So I put in a null check on _cachedWindowLoad:
I have not seen that error since I made this change.