Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Does not work in SystemJS and nodewebkit from 2.9.15 onwards #624
Since upgrading from 2.9.14 to 2.9.15, bluebird throws an invalid invocation error when performing Promise.all() (possibly others, Promise.resolve() works fine). This is only an error when run through System JS and nwjs (nodewebkit). 2.9.15 seems to be when it adds the browser version of bluebird.
Loading it through nodewebkit with a direct CDN link seemed to work fine.
See this for reproduction steps: https://github.com/NervosaX/bluebird-nw-bug
The stack trace is:
This does not reproduce when doing
This is the scheduler, setting
Update: this is because nw has a separate
We can work around this by binding setImmedaite or adding a check for
Which is here:
It is complaining that global.setImmediate does not exist. There is global.setTimeout. I would say this is an incompatability with node webkit now.