Skip to content

Commit 9484f10

Browse files
committed
Be sure deserialized closures are tagged with the SC they came from.
1 parent d2e0a5b commit 9484f10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/6model/serialization.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,9 @@ static void deserialize_closure(PARROT_INTERP, SerializationReader *reader, INTV
12651265
PMC *closure = VTABLE_clone(interp, static_code);
12661266
VTABLE_push_pmc(interp, reader->codes_list, closure);
12671267

1268+
/* Tag it as being in this SC. */
1269+
VTABLE_setprop(interp, closure, Parrot_str_new_constant(interp, "SC"), reader->root.sc);
1270+
12681271
/* See if there's a code object we need to attach. */
12691272
if (read_int32(table_row, 12))
12701273
PARROT_SUB(closure)->multi_signature = SC_get_object(interp,

0 commit comments

Comments
 (0)