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

instanceof doesn't work for $q promises #13545

Closed
@thorn0

Description

@thorn0
angular.module('app', []).run($q => {
  var promise = new $q(resolve => resolve());
  console.log(promise instanceof $q); // false
});

http://plnkr.co/edit/a6VE6z

So basically there is no way to check if an object is a $q promise.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions