Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make nqp::isconcrete safe on PMCs.
  • Loading branch information
jnthn committed Dec 9, 2012
1 parent 35c4b05 commit 03aa465
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ops/nqp.ops
Expand Up @@ -533,8 +533,7 @@ inline op repr_defined(out INT, invar PMC) :base_core {
if (var->vtable->base_type == smo_id)
$1 = IS_CONCRETE(var);
else
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
"Can only use repr_defined on a SixModelObject");
$1 = 1; /* Because other PMCs have no concept of type-object. */
}

/*
Expand Down

0 comments on commit 03aa465

Please sign in to comment.