Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
For now, just treat Coroutine like Sub. Gets us able to compile Test.…
…pm and - after copying it elsewhere because of some PROCESS bug that screws up module location - we can run spectests again. Many pass, quite a bit of fail, but hopefully a few common root causes for most of them.
  • Loading branch information
jnthn committed Feb 28, 2012
1 parent 629c0b0 commit a1249b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/6model/serialization.c
Expand Up @@ -447,7 +447,7 @@ void write_ref_func(PARROT_INTERP, SerializationWriter *writer, PMC *ref) {
else if (ref->vtable->base_type == enum_class_Hash) {
discrim = REFVAR_VM_HASH_STR_VAR;
}
else if (ref->vtable->base_type == enum_class_Sub) {
else if (ref->vtable->base_type == enum_class_Sub || ref->vtable->base_type == enum_class_Coroutine) {
PMC *code_sc = VTABLE_getprop(interp, ref, Parrot_str_new_constant(interp, "SC"));
PMC *static_cr = VTABLE_getprop(interp, ref, Parrot_str_new_constant(interp, "STATIC_CODE_REF"));
if (!PMC_IS_NULL(code_sc) && !PMC_IS_NULL(static_cr)) {
Expand Down

0 comments on commit a1249b9

Please sign in to comment.