Merge "SpecialJavaScriptTest: Make sure we don't catch our own exception"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 29 Apr 2017 04:07:48 +0000 (04:07 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 29 Apr 2017 04:07:48 +0000 (04:07 +0000)
includes/specials/SpecialJavaScriptTest.php

index 52064b7..17c64c8 100644 (file)
@@ -143,7 +143,11 @@ class SpecialJavaScriptTest extends SpecialPage {
                        .always( function () {
                                start();
                        } )
-                       .fail( function ( e ) { throw e; } );
+                       .fail( function ( e ) {
+                               setTimeout( function () {
+                                       throw e;
+                               } );
+                       } );
        } catch ( e ) {
                start();
                throw e;