When in Delphi writing:
OnResponse := Nil;
Assert(OnResponse<>Nil,'uuh, ooh');
No EAssertionFailed exception will be raised!
The above code gets compiled into this JS code:
OnResponse = null;
Just this, and nothing more. No code that actually checks the null pointer!
To me this is a severe bug. Or am I missing something too obvious?