Commit b945de5
committed
Fix eval() not returning some script results
Fix `eval()` not returning the resulting script string if the script consists of a `__statements__()` node with one child, which could be an expression that leads to a value.
Example that is fixed by this change:
`msg(eval(dyn('bind(\'shutdown\', null, null, @e, msg(123))')))`1 parent 0f1c96c commit b945de5
File tree
1 file changed
+10
-0
lines changed- src/main/java/com/laytonsmith/core/functions
1 file changed
+10
-0
lines changedLines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
| |||
3714 | 3715 | | |
3715 | 3716 | | |
3716 | 3717 | | |
| 3718 | + | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
| 3724 | + | |
| 3725 | + | |
| 3726 | + | |
3717 | 3727 | | |
3718 | 3728 | | |
3719 | 3729 | | |
| |||
0 commit comments