Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Eliminate a pir::isa usage.
  • Loading branch information
jnthn committed Jun 21, 2012
1 parent bc64ed0 commit 01558df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/how/NQPClassHOW.pm
Expand Up @@ -78,7 +78,7 @@ knowhow NQPClassHOW {
if %!methods{$name} {
nqp::die("This class already has a method named " ~ $name);
}
if nqp::isnull($code_obj) || pir::isa($code_obj, 'Undef') {
if nqp::isnull($code_obj) || !nqp::defined($code_obj) {
nqp::die("Cannot add a null method '$name' to class '$!name'");
}
pir::set_method_cache_authoritativeness__vPi($obj, 0);
Expand Down

0 comments on commit 01558df

Please sign in to comment.