fix ceylon/ceylon-js#393
convenience function for shorter assert code