Skip to content

Incompatible with bluebird when set as global Promise. #121

@mrfelton

Description

@mrfelton

When used with bluebird, this error is thrown:

Error: the promise constructor cannot be invoked directly

Which comes from here: http://bluebirdjs.com/docs/error-explanations.html#error-the-promise-constructor-cannot-be-invoked-directly

Note there it says one of the causes of this is:

  1. You are trying to subclass Promise

Bluebird does not support extending promises this way. Instead, see scoped prototypes.>

It seems that in [email protected], it is now attempting to subclass the global Promise. So, if global Promise has been set as Bluebird this fails. [email protected] does not suffer from this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions