From e96987557e291342148d525982a022af9664ed59 Mon Sep 17 00:00:00 2001 From: "Ralf S. Engelschall" Date: Sat, 14 Apr 2018 19:32:23 +0200 Subject: [PATCH] =?UTF-8?q?switch=20from=20var=20to=20let=20in=20ES6=20exa?= =?UTF-8?q?mple=20(=C3=83#115)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features.txt | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features.txt b/features.txt index 082cdcc..e04658b 100644 --- a/features.txt +++ b/features.txt @@ -1140,7 +1140,7 @@ and given here just for better understanding. See 6| // generic asynchronous control-flow driver 6| function |async| (proc, ...params) { -6| var |iterator| = |proc(...params)|; +6| let |iterator| = |proc(...params)|; 6| return new Promise((resolve, reject) => { 6| let loop = (value) => { 6| let result; diff --git a/index.html b/index.html index 6f912e0..c387c68 100644 --- a/index.html +++ b/index.html @@ -1643,7 +1643,7 @@
ECMAScript 6 — syntactic sugar: reduced | traditional
// generic asynchronous control-flow driver function async (proc, ...params) { - var iterator = proc(...params); + let iterator = proc(...params); return new Promise((resolve, reject) => { let loop = (value) => { let result;