From 22d0ef3d974d1c76b9ca4e8595c8e87a57e043c4 Mon Sep 17 00:00:00 2001 From: David Duponchel Date: Mon, 14 Mar 2016 21:18:45 +0100 Subject: [PATCH] IE8: use isArray. The function `isArray` is imported but not used. On IE 8, the method `Array.isArray` doesn't exist and we get an error. --- lib/es6-promise/enumerator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/es6-promise/enumerator.js b/lib/es6-promise/enumerator.js index 0d8b463..2a7a28f 100644 --- a/lib/es6-promise/enumerator.js +++ b/lib/es6-promise/enumerator.js @@ -30,7 +30,7 @@ function Enumerator(Constructor, input) { makePromise(this.promise); } - if (Array.isArray(input)) { + if (isArray(input)) { this._input = input; this.length = input.length; this._remaining = input.length;