work on ceylon/ceylon-js#470