domain: Make `.domain` on async resources non-enumerable
In particular, this comes into play in the node repl, which apparently enables domains by default. Whenever any Promise gets inspected, a .domain
property is displayed, which is very confusing, especially since it has some kind of WeakReference attached to it, which is not yet a language feature.
This change will prevent it from showing up in casual inspection, but will leave it available for use.
I have not run the tests locally yet, because they're incredibly slow and I need to do other things with my machine, and because the last time I tried some of them failed on master anyways.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
cc @addaleax @devsnek