mirror of https://github.com/nodejs/node.git
process: changed var to const in internal/process/promises
PR-URL: https://github.com/nodejs/node/pull/8620 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jackson Tian <shvyo1987@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ilkka Myller <ilkka.myller@nodefield.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>pull/8567/head
parent
0bfd103480
commit
d4bf5cac43
|
@ -25,7 +25,7 @@ function setupPromises(scheduleMicrotasks) {
|
|||
}
|
||||
|
||||
function rejectionHandled(promise) {
|
||||
var hasBeenNotified = hasBeenNotifiedProperty.get(promise);
|
||||
const hasBeenNotified = hasBeenNotifiedProperty.get(promise);
|
||||
if (hasBeenNotified !== undefined) {
|
||||
hasBeenNotifiedProperty.delete(promise);
|
||||
const uid = promiseToGuidProperty.get(promise);
|
||||
|
|
Loading…
Reference in New Issue