Groups
Groups
Sign in
Groups
Groups
seajs
Conversations
About
Send feedback
Help
seajs循环依赖检测递归循环调用的问题
128 views
Skip to first unread message
PengFei Huang
unread,
Jun 13, 2012, 4:28:28 AM
6/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to se...@googlegroups.com
今天开发时有同事遇到了一个错误,错误信息如下
Uncaught RangeError: Maximum call stack size exceeded
按理说出现循环依赖seajs应该能检测到,但是当加载合并后的文件时就会有问题,我看了一下seajs源码,递归的循环调用出现在 isCyclicWaiting这个函数里面
有时候可能会犯糊涂写了循环依赖,希望新版seajs针对这种情况判断一下,这样有利于及时和发现
附件里附上bug重现的代码
test.zip
Frank Wang
unread,
Jun 13, 2012, 8:49:34 AM
6/13/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to se...@googlegroups.com
非常感觉,这周已经开始 seajs 1.2 的开发。循环依赖的问题,会彻底解决。
感谢提供重现 demo。
2012/6/13 PengFei Huang
<
hpf...@gmail.com
>
--
王保平 / 玉伯(射雕)
送人玫瑰手有余香
PengFei Huang
unread,
Jun 17, 2012, 10:29:01 PM
6/17/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to se...@googlegroups.com
期待
在 2012年6月13日星期三UTC+8下午8时49分34秒,Frank Wang写道:
qbaty qi
unread,
Aug 26, 2013, 10:28:04 AM
8/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to se...@googlegroups.com
玉伯现在的循环依赖如何彻底解决? 思路是怎样的?提前检测?还是延迟调用?
Reply all
Reply to author
Forward
0 new messages