hypernova
hypernova copied to clipboard
Fix promise global pollution
hypernova pollutes the global.Promise
with bluebird's.
This will cause unwanted behaviors for application which uses other libraries that also use native Promise object.
This PR intends to remove direct assignment to global.Promise
and keeps hypernova run as before by the followings:
- Copy Promise related declaration code from environment.js to promise.js
- Add
import Promise
statements to files which invoke Promise which will feed them with bluebird's Promise as before - remove Promise related code and global assignment from environment.js
Related issues: #201 , #135