Skip to content

RangeError: Maximum call stack exceeded #1326

@kanthoney

Description

@kanthoney

bluebird 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);
             });

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions