RangeError: Maximum call stack exceeded
See original GitHub issuebluebird v3.4.7 on linux nodejs 6.9.4
The following test code produces a RangeError:
'use strict';
const Promise = require('bluebird');
const f = function*(n)
{
for(let i = 0; i < n; i++) {
yield i;
}
};
Promise.each(f(2000),
(i) => {
if(i % 1700 === 0) {
return Promise.delay(1);
}
// Uncommenting the following line stops the error
//return Promise.delay(1);
});
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:9
Top Results From Across the Web
javascript - Maximum call stack size exceeded error
It means that somewhere in your code, you are calling a function which in turn calls another function and so forth, until you...
Read more >JavaScript Error: Maximum Call Stack Size Exceeded
If you see the “Maximum Call Stack Size Exceeded” error, there's likely a problem with a recursive function within your JavaScript code.
Read more >Uncaught RangeError: Maximum call ... - Net-Informations.Com
This error is almost always means you have a problem with recursion in JavaScript code, as there isn't any other way in JavaScript...
Read more >RangeError: Maximum call stack size exceeded - Educative.io
The most common source for this error is infinite recursion. You must have a recursive function in your code whose base case is...
Read more >RangeError: Maximum call stack size exceeded in JavaScript
The "RangeError: Maximum call stack size exceeded" error occurs when a function is called so many times that the invocations exceed the call...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Dzenly I am using async / await but I still need bluebird for IE11.
Why you need any movement here in 2018, everybody use async / await 😃