Ticket Created
over 3 years ago

WERETECH-12750

improvement-request: make "null has :foo" return false instead of Null Reference Error

Currently we can do this:

var a = null;
var b = a instanceof Lanf.Number; // b will be false

But we can't do this:

var a = null;
var b = a has :toNumber;

Error: Null Reference Error
Details: Failed invoking <symbol>

Please modify the compiler to return false instead of throwing an error;