[JS] Add marker function getReifiedTypeParameterKType to runtime

So compiler bugs would produce a nicer error message instead of:
"TypeError: getReifiedTypeParameterKType is not a function"
This commit is contained in:
Svyatoslav Kuzmich
2019-11-12 16:17:07 +03:00
parent 600fb723f4
commit dc336c3c8a
@@ -71,6 +71,10 @@ Kotlin.setCoroutineResult = function(value, qualifier) {
throwMarkerError();
};
Kotlin.getReifiedTypeParameterKType = function(typeParameter) {
throwMarkerError();
};
function throwMarkerError() {
throw new Error(
"This marker function should never been called. " +