mw.loader: Guard against Object.prototype keys as module names
authorFomafix <fomafix@googlemail.com>
Mon, 8 Dec 2014 20:18:33 +0000 (20:18 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 12 Dec 2014 04:19:35 +0000 (04:19 +0000)
commit4394d6cf8a7913e90df119e32f67dd51b8f2ddcb
treec9e84f5c260694898969c6cf82b233b39b2706cb
parentd8ab903223ceb1f259ac2d598d667695d8c4a98f
mw.loader: Guard against Object.prototype keys as module names

This avoids conflicts where we confuse an Object method for a
registered module.

Change-Id: I1b1c2db355f0c698be4a5fe797daa55dedc25258
resources/src/mediawiki/mediawiki.js
tests/qunit/suites/resources/mediawiki/mediawiki.test.js