JS: add intrinsic for !!. Use it instead of ternary conditionals
See KT-2976
This commit is contained in:
@@ -109,4 +109,6 @@ function imul(a, b) {
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
Kotlin.ensureNotNull = function(x) {
|
||||
return x != null ? x : Kotlin.throwNPE();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user