JS: make enum valueOf() throw if not found.

This commit is contained in:
Anton Bannykh
2016-12-05 16:46:43 +03:00
parent e0c75f1fb8
commit 1957ac347a
7 changed files with 36 additions and 12 deletions
+4
View File
@@ -207,6 +207,10 @@ Kotlin.throwCCE = function () {
throw new Kotlin.kotlin.ClassCastException("Illegal cast");
};
Kotlin.throwISE = function (message) {
throw new Kotlin.kotlin.IllegalStateException(message);
};
/** @const */
var POW_2_32 = 4294967296;
// TODO: consider switching to Symbol type once we are on ES6.