From 378383ea3bf04ab6e083c597298db63ff665837e Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 6 May 2019 15:09:39 +0100 Subject: Support context dump safely in duktape Signed-off-by: Daniel Silverstone --- content/handlers/javascript/duktape/dukky.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'content/handlers/javascript/duktape/dukky.h') diff --git a/content/handlers/javascript/duktape/dukky.h b/content/handlers/javascript/duktape/dukky.h index 93d416983..5a67951dc 100644 --- a/content/handlers/javascript/duktape/dukky.h +++ b/content/handlers/javascript/duktape/dukky.h @@ -54,4 +54,7 @@ duk_int_t dukky_pcall(duk_context *ctx, duk_size_t argc, bool reset_timeout); /* Push a generics function onto the stack */ void dukky_push_generics(duk_context *ctx, const char *generic); +/* Log the current stack frame if possible */ +void dukky_log_stack_frame(duk_context *ctx, const char * reason); + #endif -- cgit v1.2.3