change back to support custom data types

This commit is contained in:
2023-06-21 20:42:12 +01:00
parent 9fe8bcb515
commit 114cdec821
2 changed files with 8 additions and 2 deletions

View File

@@ -275,7 +275,13 @@ func setVariableValue(v setVariable, stack stack, stacklevel int) (any, ArErr) {
case ArObject:
if _, ok := y.obj["__setindex__"]; ok {
callable := y.obj["__setindex__"]
builtinCall(callable, []any{key, resp})
_, err := runCall(call{
callable: callable,
args: []any{key, resp},
line: v.line,
path: v.path,
code: v.code,
}, stack, stacklevel+1)
if err.EXISTS {
return nil, err
}