wmde / DataValuesJavaScript

JavaScript implementations of all basic DataValue classes, associated parsers and formatters
http://wikiba.se
Other
5 stars 1 forks source link

Don't assume non-required global is set #46

Closed thiemowmde closed 10 years ago

thiemowmde commented 10 years ago

Why does this thing assume this variable is set? This makes my tests crash in my testing environment where I have error_reporting set to report everything.

JeroenDeDauw commented 10 years ago

I've seen errors caused by code like this when trying to run tests for code that does not depend on MW without having MW loaded. Is happening in most JS components I think.