You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because that PR makes use of the -e flag to fork a child process. Use of the -e flag causes spawn-wrap to disable wrapping that particular process.
It seems entirely possible that spawn-wrap could support the -e flag when detected by using the vm module, or maybe just simply by using eval.
The text was updated successfully, but these errors were encountered:
So, what arguments would spawn-wrap pass to the wrapping script if node -e 'console.log("foo")' were invoked, for example?
This module knows nothing about what "wrapping" is involved. Probably the best solution would be to have some function that is passed into the call to spawnWrap() to mutate -e and -p code before passing to the node binary?
Oh, but that won't work, will it? Because it has to survive different child processes, of course, duh. (I helped write this module, but forget how it works sometimes.)
Maybe just some option to say "invoke -e/-p arguments using the script as well, and trust that we'll handle it"?
See: avajs/ava#815
Specifically: avajs/ava#815 (comment)
This is because that PR makes use of the
-e
flag to fork a child process. Use of the-e
flag causesspawn-wrap
to disable wrapping that particular process.It seems entirely possible that
spawn-wrap
could support the-e
flag when detected by using thevm
module, or maybe just simply by usingeval
.The text was updated successfully, but these errors were encountered: