Skip to content

Domain support for Promises #364

@ORESoftware

Description

@ORESoftware

@isaacs this is for the people

hapijs/lab#695

I recommend using that patch with TapJS. It seems to work.
If you see any problems with it, I would love to know. Try out the code.

The standard problem:

Promise.resolve(null).then(function(){
   setTimeout(function(){
        throw 'this normally cannot be caught by domains, but with the patch, it can!'
   }, 100):
});

'nuff said

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions