https://bugzilla.wikimedia.org/show_bug.cgi?id=45331
Web browser: ---
Bug ID: 45331
Summary: mw.Map should not get confused by keys that look like
Object.prototype
Product: MediaWiki
Version: 1.17
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JavaScript
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
var a = new mw.Map();
a.get('constructor');
// function Object() { [native code] }
a.set('hasOwnProperty');
// Let the party begin.
It's almost as fun as setting
var true = !1;
var false = !0;
.. in languages that support that, fortunately javascript isn't one of them.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l