work on ceylon/ceylon-js#328