chore: add promise api runtime flag (#15841)

* chore: add promise api runtime flag

* add promisification plan document

* fix process.md typo
This commit is contained in:
Shelley Vohr 2018-11-26 16:00:46 -05:00 committed by GitHub
parent 6f116eeaa4
commit 0a5f8611e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 78 additions and 2 deletions

View file

@ -73,7 +73,7 @@ const deprecate = {
const warn = warnOnce(oldName, newName)
if (typeof cb !== 'function') return promise
warn()
if (process.enablePromiseAPIs) warn()
return promise
.then(res => {
process.nextTick(() => {