I tried to run the following code in both Firefox and Chrome, it gets run in Firefox but in Chrome: Maximum call stack size exceeded
.
(我试图在Firefox和Chrome中都运行以下代码,但该代码可以在Firefox中运行,但在Chrome中运行: Maximum call stack size exceeded
。)
const list = new Array(60000).join('1.1').split('.');
function removeItemsFromList() {
var item = list.pop();
if (item) {
removeItemsFromList();
}
};
removeItemsFromList();
Is there any way to prevent it and make it run in all the browsers?
(有什么方法可以防止它并使它在所有浏览器中运行?)
ask by GeniusGo translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…