www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

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:
Mchrome/content/zotero/tools/testTranslators/translatorTester.js | 4+++-
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() {