From 9e65f02d9d9e3527e07ba7add79773b1a0640a6a Mon Sep 17 00:00:00 2001 From: Deepak Kothandan Date: Sat, 2 Jun 2018 12:58:54 +0200 Subject: [PATCH] fix(utils): gulp dev dependencies and update util/index rever package.json --- src/util/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/util/index.ts b/src/util/index.ts index 5338c651d7..9604be53fe 100644 --- a/src/util/index.ts +++ b/src/util/index.ts @@ -29,7 +29,9 @@ import chalk from "chalk" import hasAnsi = require("has-ansi") // shim to allow async generator functions -(Symbol).asyncIterator = (Symbol).asyncIterator || Symbol.for("Symbol.asyncIterator") +if (typeof (Symbol as any).asyncIterator === "undefined") { + (Symbol as any).asyncIterator = Symbol("asyncIterator") +} export type HookCallback = (callback?: () => void) => void