https://kotlinlang.org logo
#javascript
Title
# javascript
d

David Smith

02/13/2023, 12:00 PM
I just looked at the javascript code that my MPP project generated and it has a lot of
eval
calls in it, is kotlinjs safe?
p

Piotr Krzemiński

02/13/2023, 12:19 PM
if output from a C++ compiler contains a lot of jumps (evil GOTO 🔥), is it safe? 😉
🙌 1
or I’m missing your point. I get it as: using
eval
by a programmer is kinda shady, but if it’s used by a tool like a compiler and provided that the tool uses it correctly, I have no problem with that
👍🏻 1
r

Robert Jaros

02/13/2023, 1:01 PM
No output from any C++ compiler is safe 😜
😍 1
And back to tho initial question - I've checked a few of my larger kotin/js projects and I haven't found a single
eval
in the generated code.
j

jw

02/13/2023, 1:15 PM
You're probably using the development output of webpack. Switch to production output
d

David Smith

02/13/2023, 4:05 PM
it’s totally fine if the kotlin js developer are perfect and never write bugs…
but I meant more, does that open up me as a developer using kotlin to accidentally writing vulnerabilities?
4 Views