Last modified: 2013-03-18 09:01:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T47331, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 45331 - mw.Map should not get confused by keys that look like Object.prototype
mw.Map should not get confused by keys that look like Object.prototype
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.17.x
All All
: Normal normal (vote)
: 1.21.0 release
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-24 14:21 UTC by Krinkle
Modified: 2013-03-18 09:01 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2013-02-24 14:21:19 UTC
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.
Comment 1 Krinkle 2013-02-24 14:42:43 UTC
Change-Id: I035e23f700e2120618ed4fbe5ce95c7f9b947e41

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links