Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix: use strict equality in scheduleQueueDrain (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael authored and mhevery committed Nov 19, 2016
1 parent e1c2a02 commit 4b4249c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4b4249c

Please sign in to comment.