Open
Description
The odd circumstances for this to be triggered are:
1. Function is assigned to a variable
2. Function is defined on a single line
3. The function makes use of $(...)
to shell out
4. The variable assigned in #1 is returned from the module
This fails without producing any error output:
# scratch.abs
x = f() { $(ls) }
return x
# abs repl
x = require("scratch.abs")
x # -> null
These do not:
# return one-line, $() function directly
return f() { $(ls) }
# define on multiple lines
x = f() {
$(ls)
}
return x
# don't use $()
x = f () { return 42 }
return x