optimize
work on ceylon/ceylon-js#433