I run into a Javascript exception in my complex ap...
# getting-started
n
I run into a Javascript exception in my complex application:
Copy code
TypeError: this._this__u8e3s4__1.await_4rdzbx_k$ is not a function
The stack trace is useless, see image. Do you have any recommendation how can I investigate this problem? I use Kotlin 2.0.0. Thanks.
Now it fails on JVM as well with
Exception in thread "main" java.lang.VerifyError: Bad type on operand stack
😞
kodee shocked 1
d
Please report an issue to kotl.in/issue
n
I tried to extract a reproducer from my complex application but I couldn't. The error arised at a function with nested lambda expressions, calling functions with extension and context receivers. The error message
TypeError: this._this__u8e3s4__1.await_4rdzbx_k$ is not a function
contained a single usable hint: "await". So I refactored my related function which called
Deferred.await()
to not use context receiver and the error is gone (it is an extension function on
Deferred
, and it had a
Raise<X>
context receiver before, now it throws an exception instead).