From 4b4249c009f82afaa29d717f9961f991414cb023 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 19 Nov 2016 01:26:38 +0100 Subject: [PATCH] fix: use strict equality in scheduleQueueDrain (#504) --- lib/zone.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zone.ts b/lib/zone.ts index ff5f10a07..07eb7171a 100644 --- a/lib/zone.ts +++ b/lib/zone.ts @@ -962,7 +962,7 @@ const Zone: ZoneType = (function(global: any) { function scheduleQueueDrain() { // if we are not running in any task, and there has not been anything scheduled // we must bootstrap the initial task creation by manually scheduling the drain - if (_numberOfNestedTaskFrames == 0 && _microTaskQueue.length == 0) { + if (_numberOfNestedTaskFrames === 0 && _microTaskQueue.length === 0) { // We are not running in Task, so we need to kickstart the microtask queue. if (global[symbolPromise]) { global[symbolPromise].resolve(0)[symbolThen](drainMicroTaskQueue);