[dojo-contributors] IE6's stack may be smaller than you think

Douglas Hays doughays at us.ibm.com
Thu Oct 28 19:04:20 EDT 2010


Seems to be fixed now.  Thanks Mark and Kris.

- Doug


|------------>
| From:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Kris Zyp <kzyp at dojotoolkit.org>                                                                                                                   |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |"dojo dev." <dojo-contributors at mail.dojotoolkit.org>                                                                                              |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Cc:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |dojo-contributors at dojotoolkit.org                                                                                                                 |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |10/28/2010 06:58 PM                                                                                                                               |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |Re: [dojo-contributors] IE6's stack may be smaller than you think                                                                                 |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Sent by:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |dojo-contributors-bounces at mail.dojotoolkit.org                                                                                                    |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|





Following their instructions, does rev 23073 fix the issue? Don't have an
IE6 handy....
Kris

On 10/28/2010 4:41 PM, Mark Hays wrote:

      Another group tried to implement CommonJS just a few months back and
      hit the Stack Overflow in IE6 we are encountering with the new define
      () API for the loader (cf #11883):

      http://cappuccino.org/discuss/2010/03/01/internet-explorer-global-variables-and-stack-overflows/


      In their stupidly trivial example, they declared a recursive
      function, stored it on the window, and then called it. As few as 13
      recursive calls to this function triggered a Stack Overflow error in
      IE6.

      On the other hand, when they stored the function in an object hanging
      off the window (read: dojo) the function could be called an
      arbitrarily large number of times recursively without fail.

      I mention this because I noticed we declare define() in a manner
      consistent with their example (we declare this.define where
      this==window), so I am wondering if there is another way to store
      define() so that it doesn't live on the window yet widget files that
      use it can get to it.


      _______________________________________________
      dojo-contributors mailing list
      dojo-contributors at mail.dojotoolkit.org
      http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors
      _______________________________________________
      dojo-contributors mailing list
      dojo-contributors at mail.dojotoolkit.org
      http://mail.dojotoolkit.org/mailman/listinfo/dojo-contributors

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20101028/84f9ea4b/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
Url : http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20101028/84f9ea4b/attachment-0002.gif 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ecblank.gif
Type: image/gif
Size: 45 bytes
Desc: not available
Url : http://mail.dojotoolkit.org/pipermail/dojo-contributors/attachments/20101028/84f9ea4b/attachment-0003.gif 


More information about the dojo-contributors mailing list