Html.run freezes when function does not exist (DEF-3869) (SOLVED)

#1

I want to call a JavaScript function using html5.run. If the function called does not exist, the program hangs. I need html.run to return even if the function called doesn’t exist. Is this possible?

My code:

if html5 then html5.run('parent.cmgGameEvent("start");') end
0 Likes

#2

I would have thought it would return.
What does it say in the console?

1 Like

#3

I would like it to return!

Console indicates a crash:

1 Like

#4

Solved in 1.2.168

1 Like