Have QueueRunner run specs iteratively if possible, fallback to recursion for async specs

This prevents the stack from growing as large for the normal cases and is giving a significant speedup for the performance suite
This commit is contained in:
Davis W. Frank and Sheel Choksi
2013-07-02 16:05:26 -07:00
parent 264b1fea50
commit 09fe7b0540
4 changed files with 44 additions and 31 deletions

View File

@@ -93,9 +93,7 @@ getJasmineRequireObj().Suite = function() {
}
function wrapChild(child) {
return function(done) {
child.execute(done);
};
return function() { child.execute(); };
}
};