0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00
nodejs/test/addons
Trevor Norris 81a9739108 node,async-wrap: verify domain enter/exit are set
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>
2014-09-02 11:30:45 -07:00
..
async-hello-world src, test: fix up ObjectWrap, make test-addons 2014-03-14 00:41:04 +04:00
at-exit src, test: fix up ObjectWrap, make test-addons 2014-03-14 00:41:04 +04:00
hello-world addons: build and test examples 2014-01-22 00:39:13 +04:00
hello-world-function-export addons: build and test examples 2014-01-22 00:39:13 +04:00
repl-domain-abort node,async-wrap: verify domain enter/exit are set 2014-09-02 11:30:45 -07:00
.gitignore test: update addons .gitignore 2012-05-24 14:07:09 +02:00
testcfg.py addons: build and test examples 2014-01-22 00:39:13 +04:00