petkaantonov/bluebird — pull request #165 by dax (2014-03-27 16:11:34+00:00)
Title: Wrap global.setTimeout to work with mocks

When a mock testing library (like sinonjs) override global.setTimeout, bluebird
was keeping the original version and was not using the mocked one.
By wrapping the call to global.setTimeout, bluebird will always use the
correct setTimeout implementation.