Bug - Assert() does not get compiled into any JS code

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?

We will check this with the pas2js team.


OMG, thank you Bruno!