mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
81a9739108
The REPL global object lazy loads modules by placing getters for each. This causes MakeDomainCallback() to be run if a native module is loaded from the REPL, but if the domain module hasn't been loaded then there are no enter/exit callbacks to be called. Causing an assert() to fail. Fix the issue by conditionally running the callback instead of asserting it is available. Also add "addon" test to verify the fix. Fixes: #8231 Signed-off-by: Trevor Norris <trev.norris@gmail.com> |
||
---|---|---|
.. | ||
async-hello-world | ||
at-exit | ||
hello-world | ||
hello-world-function-export | ||
repl-domain-abort | ||
.gitignore | ||
testcfg.py |