Skip to content

Are DOM Promises intended to be inherited from in user code? #71

@juandopazo

Description

@juandopazo

I just tried the implementation in Chromium 30 and Firefox Nightly and both throw an error when trying to use prototype delegation with them.

Chromium throws TypeError: DOM object constructor cannot be called as a function when trying to use Promise.call.

Firefox throws when calling then in the subclassed promise: TypeError: 'then' called on an object that does not implement interface Promise.

Is this by design? __proto__ works but... you know.

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