Permalink
Browse files

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...
1 parent 629c0b0 commit a1249b98baaa4e166cea54b34193db0c1e652b40 @jnthn jnthn committed Feb 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/6model/serialization.c
@@ -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)) {

0 comments on commit a1249b9

Please sign in to comment.