JavaScript error in IE - "Stack overflow at Line 0"

1288 views
Skip to first unread message

Zach

unread,
Jan 30, 2013, 2:40:27 PM1/30/13
to newha...@googlegroups.com
As a followup to the last meetup...

Original question here in 2008:

From the highest voted answer:

I ran into this problem recently and wrote up a post about the particular case in our code that was causing this problem.

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

The quick summary is: recursion that passes through the host global object is limited to a stack depth of 13. In other words, if the reference your function call is using (not necessarily the function itself) was defined with some form window.foo = function, then recursing through foo is limited to a depth of 13.


So it was in fact about recursion and a limited stack depth, as I tried recalling at the Geronimo meetup, but the kicker is that it impacts recursion through  "window.someFunction".

In other words, I'll be using jslint/jshint to help identify undeclared var's.

-Zach

Diego Scataglini

unread,
Jan 30, 2013, 6:44:01 PM1/30/13
to newha...@googlegroups.com
nice!

-Zach

--
You received this message because you are subscribed to the Google Groups "newhaven.rb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to newhavenrb+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages