I have a very complex javascript that has over 40 Global variables declared but I just noticed that everything above the 40 global variable limit is not being recognised and a simple alert shows "undefined". I mean you can try it yourself:
var a = 0;
var b = 1;
The 40th global variable doesn't seem to get declared. Is this a bug?