Opened 11 years ago

Closed 10 years ago

#12156 closed defect (duplicate)

13 nested dojo.require calls can cause stack overflow on MSIE 7

Reported by: Jason Priestley Owned by:
Priority: high Milestone: tbd
Component: Loader Version: 1.5
Keywords: Cc:
Blocked By: Blocking:


If module A requires module B, and module B requires module C, all the way through to module N, then IE 7 will throw a fit. The issue is probably caused by the extremely low stack depth limit for certain calls in IE (cf

To run the attached test case, untar the directory under dojo root, and point a browser at /recurse/test.html

Attachments (1)

recurse.tar.gz (698 bytes) - added by Jason Priestley 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by Jason Priestley

Attachment: recurse.tar.gz added

comment:1 Changed 11 years ago by ben hockey

duplicate of #9922

comment:2 Changed 11 years ago by Jason Priestley

Replacing the line

var value = d["eval"](contents);


var value = eval(contents);

in loader.js:116 seems to fix the problem. This suggests that the exceptional behavior is triggered by explicit use of the window object in dojo.eval (which uses if it exists).

comment:3 Changed 11 years ago by Chris Mitchell

Owner: anonymous deleted

comment:4 Changed 10 years ago by bill

Component: GeneralLoader
Resolution: duplicate
Status: newclosed

Duplicate of #9922.

Note: See TracTickets for help on using tickets.