Hey!

I am using jerry script as a scripting backend in my game engine. And it works great :)

But I can't figure out how to implement script reloading. When you develop something, you need to restart and run scripts over and over again. How can i do this?

In other scripting languages, I just loaded the script again and all objects were overwritten. But Jerry says, “OK, this property already exists. Stop it." This happens when I try to reload the classes.

I think I can fix the source code and change this behaviour, but is this the correct solution? How can I load a script with some class and then reload that script with the same class?
How I can reload script?
This is a GitHub Issue
repo:jerryscript
owner:jerryscript-project
Title : How I can reload script?
Issue date:

--- start body ---
Hey!

I am using jerry script as a scripting backend in my game engine. And it works great :)

But I can't figure out how to implement script reloading. When you develop something, you need to restart and run scripts over and over again. How can i do this?

In other scripting languages, I just loaded the script again and all objects were overwritten. But Jerry says, “OK, this property already exists. Stop it." This happens when I try to reload the classes.

I think I can fix the source code and change this behaviour, but is this the correct solution? How can I load a script with some class and then reload that script with the same class?
--- end body ---
