mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 22:28:45 +01:00
Print object type for unknown object error.
Thanks, Michel!
This commit is contained in:
@ -50,7 +50,7 @@ static void dumpObject(Obj* obj)
|
||||
case OBJ_RANGE: printf("[range %p]", obj); break;
|
||||
case OBJ_STRING: printf("%s", ((ObjString*)obj)->value); break;
|
||||
case OBJ_UPVALUE: printf("[upvalue %p]", obj); break;
|
||||
default: printf("[unknown object]"); break;
|
||||
default: printf("[unknown object %d]", obj->type); break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user