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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l