Raku / nqp

NQP
Other
341 stars 131 forks source link

[JVM] Handle null in is(int|num|str) #795

Closed usev6 closed 1 year ago

usev6 commented 1 year ago

This avoids a NullPointerException in code like the following:

nqp::say(nqp::isstr(nqp::null()))

That code prints a 0 now -- which brings the behaviour of the JVM backend in line with that of MoarVM.