commit deca49c433053ffbe16c47717cc672c767e88aec
parent e8934723319aa219fd37b0ad416c4f0ff893a8f3
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 16 Apr 2013 23:31:23 -0400
Avoid stack overflow in tests
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js
@@ -334,7 +334,9 @@ Zotero_TranslatorTester.prototype._runTestsRecursively = function(testDoneCallba
if(this.type === "web") {
this.fetchPageAndRunTest(test, callback);
} else {
- this.runTest(test, null, callback);
+ (Zotero.setTimeout ? Zotero : window).setTimeout(function() {
+ this.runTest(test, null, callback);
+ }, 0);
}
(Zotero.setTimeout ? Zotero : window).setTimeout(function() {