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:
parent
6f116eeaa4
commit
0a5f8611e8
4 changed files with 78 additions and 2 deletions
|
@ -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(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue