Commit 043982b
committed
ClojureScriptLanguage: decode unbound vars to null
This is common when, e.g., a script has no declared outputs, does not
assign a value to the "result" variable, and has no return value.
For example, the following script:
(let [n 23] (println n))
was issuing the warning:
[WARNING] Ignoring unsupported output: result [clojure.lang.Var$Unbound]
When really, the return value there should be null and hence ignored.1 parent 19db479 commit 043982b
File tree
1 file changed
+7
-0
lines changed- src/main/java/org/scijava/plugins/scripting/clojure
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
67 | 74 | | |
0 commit comments