work on ceylon/ceylon-js#367