From 2baeab7305899b955ccb38c32b556104bde44da8 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 15 Nov 2016 17:00:43 +0100 Subject: [PATCH] use strict equality in scheduleQueueDrain --- lib/zone.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zone.ts b/lib/zone.ts index a87864494..b1c23676b 100644 --- a/lib/zone.ts +++ b/lib/zone.ts @@ -941,7 +941,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);