Skip to content

Commit f054311

Browse files
committed
Make sure we don't treat container type objects as if they're actual living containers.
1 parent 67c0a4c commit f054311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ops/nqp.ops

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static PMC *KnowHOWAttribute = NULL;
3232
static PMC * decontainerize(PARROT_INTERP, PMC *var) {
3333
if (var->vtable->base_type == smo_id) {
3434
ContainerSpec *spec = STABLE(var)->container_spec;
35-
if (spec) {
35+
if (spec && REPR(var)->defined(interp, var)) {
3636
if (!PMC_IS_NULL(spec->value_slot.class_handle)) {
3737
/* Just get slot. */
3838
return VTABLE_get_attr_keyed(interp, var, spec->value_slot.class_handle,

0 commit comments

Comments
 (0)