Skip to content

Commit 03aa465

Browse files
committed
Make nqp::isconcrete safe on PMCs.
1 parent 35c4b05 commit 03aa465

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ops/nqp.ops

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,7 @@ inline op repr_defined(out INT, invar PMC) :base_core {
533533
if (var->vtable->base_type == smo_id)
534534
$1 = IS_CONCRETE(var);
535535
else
536-
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
537-
"Can only use repr_defined on a SixModelObject");
536+
$1 = 1; /* Because other PMCs have no concept of type-object. */
538537
}
539538

540539
/*

0 commit comments

Comments
 (0)