Make nullable check less verbose in JS-backend.

For check what variable is equal null or undefined enough to compare with null (or undefined).
See ECMAScript specification 11.9.1, 11.9.2, 11.9.3
This commit is contained in:
Zalim Bashorov
2013-06-04 16:06:41 +04:00
parent 60a2f4ef08
commit 2bae647412
5 changed files with 32 additions and 14 deletions
@@ -45,4 +45,8 @@ public final class EqualsTest extends AbstractExpressionTest {
public void testKt2370() throws Exception {
fooBoxTest();
}
public void testEqualsNullOrUndefined() throws Exception {
checkFooBoxIsOk();
}
}