Closed swordsmanSun closed 7 months ago
The jerry_value_copy
is correct way to create a new reference. Maybe somewhere it is unintentionally released.
The
jerry_value_copy
is correct way to create a new reference. Maybe somewhere it is unintentionally released.
thanks,I'm gonna go check the code
I can't persist the argument. It appears to be destroyed after the c method is executed, even though I used jerry value copy api
I want to persist the js callback argument received by the c native method and call it in another scope, but I can't access it properly in that other scope. The following is a simple example( function eventHandler is called afhter function initLoopEvent is called, and function eventHandler is called multiple times )