Skip to content

Commit 1535e86

Browse files
committed
Remove unnecessary abstraction Expression, use Statement only as marker
1 parent f6d4ff5 commit 1535e86

File tree

61 files changed

+355
-353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+355
-353
lines changed

ownlang-parser/src/main/java/com/annimon/ownlang/lib/UserDefinedFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public Value execute(Value[] values) {
6565
final Argument arg = arguments.get(i);
6666
ScopeHandler.defineVariableInCurrentScope(arg.name(), arg.valueExpr().eval());
6767
}
68-
body.execute();
68+
body.eval();
6969
return NumberValue.ZERO;
7070
} catch (ReturnStatement rt) {
7171
return rt.getResult();

0 commit comments

Comments
 (0)