如何在javascript中调整堆栈大小 [英] how to resize the stack in javascript

查看:80
本文介绍了如何在javascript中调整堆栈大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在javascript中有一个编码,该编码在safari浏览器中出错,例如超出最大调用堆栈大小" .....

在这种情况下,可能发生任何调整大小"堆栈以包含数据而没有错误的可能性....

Hi,
I have a coding in javascript which make error in safari browser like"Maximum call stack size exceeded"....

In this case any possibility to ""resize"" the stack to contain data without error occur....

推荐答案

超出了最大调用堆栈大小"
这意味着在代码中的某处,您将项目推入堆栈而没有弹出它们.在其他工作中,一次又一次地调用一个特定的方法,这将进入一个深循环,耗尽堆栈限制.通常,在递归函数的情况下会发生这种情况.


任何调整大小"堆栈的可能性
因此,答案是否".您需要查看/查找并解决堆叠在一起的问题.
"Maximum call stack size exceeded"
It means that somewhere in your code, you are pushing items onto the stack without popping them off. In other works, calling a particular method again and again which is going into a deep loop, exhausting the stack limit. Generally, this happens in case of recursive functions.


any possibility to ""resize"" the stack
Thus the answer to this is ''no''. You need to see/find and resolve the issue where things are getting stacked.


这篇关于如何在javascript中调整堆栈大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆