https://bugzilla.wikimedia.org/show_bug.cgi?id=67481

Bartosz Dziewoński <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Bartosz Dziewoński <[email protected]> ---
Detecting recursive calls might be difficult, but it can just suppress all
warnings. From /tests/qunit/data/testrunner.js in core, these functions are
used several times in tests:

    var warn;

    function suppressWarnings() {
        warn = mw.log.warn;
        mw.log.warn = $.noop;
    }

    function restoreWarnings() {
        if ( warn !== undefined ) {
            mw.log.warn = warn;
            warn = undefined;
        }
    }

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to