Commit Graph

2 Commits

Author SHA1 Message Date
jimliu7434
0e4a681e98
test: use common.crashOnUnhandledRejection
Add common.crashOnUnhandledRejection to
test-async-wrap-promise-after-enabled.js

PR-URL: https://github.com/nodejs/node/pull/17231
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2017-12-20 01:59:07 +00:00
Anna Henningsen
a6023ee0b5 async_wrap: fix Promises with later enabled hooks
Assign a `PromiseWrap` instance to Promises that do not have one
yet when the PromiseHook is being called.

Fixes: https://github.com/nodejs/node/issues/13237
PR-URL: https://github.com/nodejs/node/pull/13242
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: Matthew Loring <mattloring@google.com>
2017-05-28 12:21:18 -07:00