Support getting script object in the backtrace callback. (#4789)

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2021-10-06 11:09:01 +02:00
committed by GitHub
parent 54b1a3c739
commit d98ff6fd30
5 changed files with 57 additions and 13 deletions
+1 -1
View File
@@ -1067,7 +1067,7 @@ jerry_exec_snapshot (const uint32_t *snapshot_p, /**< snapshot */
}
else
{
ret_val = vm_run_global (bytecode_p);
ret_val = vm_run_global (bytecode_p, NULL);
if (!(bytecode_p->status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION))
{
ecma_bytecode_deref (bytecode_p);