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

Commit 4b4249c

Browse files
Michaelmhevery
authored andcommitted
fix: use strict equality in scheduleQueueDrain (#504)
1 parent e1c2a02 commit 4b4249c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ const Zone: ZoneType = (function(global: any) {
962962
function scheduleQueueDrain() {
963963
// if we are not running in any task, and there has not been anything scheduled
964964
// we must bootstrap the initial task creation by manually scheduling the drain
965-
if (_numberOfNestedTaskFrames == 0 && _microTaskQueue.length == 0) {
965+
if (_numberOfNestedTaskFrames === 0 && _microTaskQueue.length === 0) {
966966
// We are not running in Task, so we need to kickstart the microtask queue.
967967
if (global[symbolPromise]) {
968968
global[symbolPromise].resolve(0)[symbolThen](drainMicroTaskQueue);

0 commit comments

Comments
 (0)