From 806857712f76398a786874d77aa65e2f3cbf7dab Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Fri, 29 Sep 2017 22:15:24 -0700 Subject: [PATCH] src: do not add .domain to promises in VM contexts The promises are still tracked, and their handlers will still execute in the correct domain. The creation domain is simply hidden. PR-URL: https://github.com/nodejs/node/pull/15695 Fixes: https://github.com/nodejs/node/issues/15673 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Ben Noordhuis --- doc/api/domain.md | 6 ++++++ src/env.h | 1 + src/node.cc | 29 ++++++++++++++++++++++------ test/parallel/test-domain-promise.js | 10 +++++++--- 4 files changed, 37 insertions(+), 9 deletions(-) diff --git a/doc/api/domain.md b/doc/api/domain.md index 285378c3bd5..30e93e2bea4 100644 --- a/doc/api/domain.md +++ b/doc/api/domain.md @@ -1,6 +1,12 @@ # Domain