aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/include
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2024-12-14 10:34:36 -0600
committerCalvin Rose <calsrose@gmail.com>2024-12-14 10:34:36 -0600
commit4daecc9a4113aa0198ddf30c90e59cc256a748d1 (patch)
tree2e87875db83fb9468394c70b6088962b091bfc20 /src/include
parentMerge 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.h1
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 *****/