See https://github.com/scala-js/scala-js/pull/1570
See scala-js/scala-js#1570