Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make nqp::setcodeobj cool with coroutines.
  • Loading branch information
jnthn committed Apr 9, 2013
1 parent 0e3f03c commit 18f5d04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ops/nqp.ops
Expand Up @@ -1706,7 +1706,8 @@ code object.

*/
inline op set_sub_code_object(in PMC, invar PMC) :base_core {
if ($1->vtable->base_type == enum_class_Sub) {
if ($1->vtable->base_type == enum_class_Sub
|| $1->vtable->base_type == enum_class_Coroutine) {
SETATTR_Sub_multi_signature(interp, $1, $2);
PARROT_GC_WRITE_BARRIER(interp, $1);
}
Expand Down

0 comments on commit 18f5d04

Please sign in to comment.