I've got such exception in the browser console wit...
# javascript
r
I've got such exception in the browser console with 1.4.0 (legacy):
Copy code
Error: This marker function should never been called. Looks like compiler did not eliminate it properly. Please, report an issue if you caught this exception.
How should I report this issue? There is not really much more information but I suppose it comes from serialization.
This is generated JS code:
Copy code
Kotlin.getReifiedTypeParameterKType = function (typeParameter) {
    throwMarkerError();
  };
  function throwMarkerError() {
    throw new Error('This marker function should never been called. ' + 'Looks like compiler did not eliminate it properly. ' + 'Please, report an issue if you caught this exception.');
  }
u
Hey Robert! Can you please submit an issue to our bug tracker (project Kotlin) - https://youtrack.jetbrains.com/newIssue this is the most reliable way to make sure it won't got lost
r
o
Just got the same issue today, is there a workaround in the meantime? @Robert Jaros
r
I'm still using
KClass<T>.serializer()
with
@OptIn(InternalSerializationApi::class)
annotation.
o
Thanks, let me try it
r
The issue appeared when I tried recommended migration to inline
serializer()
function, so I've just skipped this migration for now.
o
Yeah, for me it was the same, until it failed in JS (Jvm and Native work just fine)