JS: add intrinsic for !!. Use it instead of ternary conditionals

See KT-2976
This commit is contained in:
Alexey Andreev
2017-10-24 16:02:13 +03:00
parent 8631e898a7
commit aae67e154a
3 changed files with 6 additions and 16 deletions
+3 -1
View File
@@ -109,4 +109,6 @@ function imul(a, b) {
}
})();
Kotlin.ensureNotNull = function(x) {
return x != null ? x : Kotlin.throwNPE();
};