scala-js/scala-js — pull request #805 by sjrd (2014-07-06 06:15:16+00:00)
Title: Fix #802: While(true, body) should always typecheck as NothingType.

This also uses a pattern match instead of an == because it
avoids the allocation of the BooleanLiteral and the virtual
dispatch of ==.