diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-04-13 10:09:17 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-04-13 13:38:52 +0200 |
commit | 111cf063880bf37f9ef5cea38a9f33f32f7e2a4d (patch) | |
tree | bbbb15caf100cd72f27636133e0bc7e643b3a266 /.github/workflows/macos.yml | |
parent | c5fb8ca9794ac858cf45e7de5e3f99a9ac201df9 (diff) |
vm: stop executing bytecode on return of nested calls
When a managed function is indirectly invoked during bytecode execution,
e.g. when calling the tostring() method of an object prototype during
string concatenation, the invoked function must stop executing bytecode
upon return to hand control back to caller.
Extend `uc_vm_execute_chunk()` to track the amount of nested function
calls it performs and hand back control to the caller once the toplevel
callframe returns. Also bubble unhandled exceptions only as far as up
to the original caller.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to '.github/workflows/macos.yml')
0 files changed, 0 insertions, 0 deletions