From d4bf5cac435e8e54144cc481d61b86db5aa11da7 Mon Sep 17 00:00:00 2001 From: Adri Van Houdt Date: Sat, 17 Sep 2016 12:59:40 +0200 Subject: [PATCH] process: changed var to const in internal/process/promises PR-URL: https://github.com/nodejs/node/pull/8620 Reviewed-By: James M Snell Reviewed-By: Jackson Tian Reviewed-By: Anna Henningsen Reviewed-By: Ilkka Myller Reviewed-By: Colin Ihrig --- lib/internal/process/promises.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/process/promises.js b/lib/internal/process/promises.js index e364822fa3a..e22fb1ae5ed 100644 --- a/lib/internal/process/promises.js +++ b/lib/internal/process/promises.js @@ -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);