[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:
@@ -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. " +
|
||||
|
||||
Reference in New Issue
Block a user