Add scope to internal functions.

This commit is contained in:
2018-06-21 14:25:11 -07:00
parent 82747eae6a
commit 13ccea10e4
3 changed files with 7 additions and 7 deletions

View File

@@ -530,7 +530,7 @@ libab_result _interpreter_call_behavior(struct interpreter_state* state,
libab_ref* into) {
libab_result result = LIBAB_SUCCESS;
if (behavior->variant == BIMPL_INTERNAL) {
result = behavior->data_u.internal(state->ab, params, into);
result = behavior->data_u.internal(state->ab, scope, params, into);
} else {
result = _interpreter_call_tree(state, behavior->data_u.tree, params, scope, into);
}