diff options
| author | 2024-12-14 10:34:36 -0600 | |
|---|---|---|
| committer | 2024-12-14 10:34:36 -0600 | |
| commit | 4daecc9a4113aa0198ddf30c90e59cc256a748d1 (patch) | |
| tree | 2e87875db83fb9468394c70b6088962b091bfc20 /src/include | |
| parent | Merge pull request #1532 from strangepete/fstat-directory-test (diff) | |
Prevent await inside janet_call - address #1531
This was partially implemented before, but not in the case where the
await or other signal itself was created by a C function. We have to
separate code paths for generating signals - one via normal returns in
janet_vm_continue, and the other via longjump. This adds handling for
the longjump case, as well as improved messaging.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/janet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/janet.h b/src/include/janet.h index e9c9429f..c91e5e60 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -1261,6 +1261,7 @@ typedef struct { /* new state */ jmp_buf buf; Janet payload; + int coerce_error; } JanetTryState; /***** END SECTION TYPES *****/ |
