How do kotlin-js stacktraces work?
# javascript
s
How do kotlin-js stacktraces work?
k
What do you mean?
s
As in can you transform them into kotlin stacktraces?
Sorry, should have been clearer
k
No, you can't extract stack traces from JS exceptions. Actually, there's no standart stacktrace except for
stack
property, which is a string.
c
in fact the answer is not always "no", some tools (for example karma test runner) could extract js stacktace and convert it to kotlin stacktrace using source maps