endo make
leaves behind temp bundle if make()
result is bad
#2290
Labels
bug
Something isn't working
endo make
leaves behind temp bundle if make()
result is bad
#2290
Describe the bug
I'm not 100% sure what the required nature of the result returned by the
make()
function defining a worker should be (I suspect it's supposed to be serializable), but if you return something unsuitable (such as a function) and creating the worker required creating a temp bundle, the temp bundle will be left behind as debris.Steps to reproduce
Create the following nonsense worker source file
zot.js
:If you then try to use it with
endo make -name stuff zot.js
it produces an error:A subsequent
endo list
command produces:Expected behavior
The temp bundle should not be left behind.
NOTE: If the
zot.js
file simply contains syntactically invalid JavaScript, the temp bundle is cleaned up properly.The text was updated successfully, but these errors were encountered: