Pass values to functions, not variables.

This commit is contained in:
Jordan Eldredge 2019-07-02 21:39:36 -07:00
parent 502dade90a
commit 9116793fb9

View file

@ -35,7 +35,7 @@ function interpret(start, { commands, methods, variables, classes }) {
const methodArgs = [];
while (argCount--) {
methodArgs.push(stack.pop());
methodArgs.push(stack.pop().getValue());
}
const variable = stack.pop();
const obj = variable.getValue();