mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
In setInterval and setTimeout there must be a reference increase to the given function. If you use `jerry_acquire` and you want to cleanup the engine, you get an assertion, because this value is released nowhere in the code. In my opinion it is better to set the function as a property, so it is released automatically. In launcher.cpp there is bad error handle. If `returned_value` has error flag, `parsed_code` is not released. JerryScript-DCO-1.0-Signed-off-by: Marko Fabo mfabo@inf.u-szeged.hu