Promise constification.
Merge pull request #1192 from jimis/Promise_constification

Promise constification.