Add support of the assert method for the Titanium compatibility mode