From 8d727f10f31bfd12d7b05ae1e50656ed45f70ad3 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 285378c3bd..30e93e2bea 100644 --- a/doc/api/domain.md +++ b/doc/api/domain.md @@ -1,6 +1,12 @@ # Domain