Dojo IE8 Defect: ‘bases’ is null or not an object

This is a Dojo defect where we get the error “‘bases’ is null or not an object” when trying to do a cross iframe call even if the iframes are from the same domain.

From my case, it was two iframes from the same domain with the child calling its parent’s method. It’s pretty well summarized by the thread reply below.

From the Dojo Toolkit mailing list archive at

I get this error in IE8 (haven’t tried IE7).
I don’t get this error in Firefox, IE9 (IE9 mode or even in IE8 mode) and

Download the 2 html files attached and place them next to each other.
One basically is the iframe src of the other. test.html test1.html

Press the button to show the dialog.
It will fail in IE8 with the above error.
Workaround is to create the options object in the iframe via
options = top.Object();

Note, the above test might fail in Chrome too with a X-Domain security
violation since the html files have diff urls…but if they were being
served from the same domain then Chrome would be fine too.

View this message in context:


Now read this

ES6 Array.prototype.fill

So recently I tried to initialize an array of empty objects in javascript. I wanted it to be configurable with how many elements are present in the initial array as well as what I initialize it with (it may not be an empty object in the... Continue →