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

            Bug ID: 62605
           Summary: "var TEST = true" should not create a global variable
                    in debug mode (for consistency with production mode)
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Keywords: javascript
          Severity: normal
          Priority: Unprioritized
         Component: ResourceLoader
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: mybugs.m...@gmail.com
                CC: krinklem...@gmail.com, roan.katt...@gmail.com,
                    tpars...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

If I create a gadget with "var TEST = true;" then window.TEST === undefined in
production mode, but when I try to debug the gadget by adding debug=1 to the
URL, the behavior changes and I get window.TEST === true;

The variable should still be local in debug mode.

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

Reply via email to