summaryrefslogtreecommitdiff
path: root/content/handlers/javascript/duktape/dukky.h
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-03 11:32:47 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-05-03 11:33:07 +0100
commitc17e588b66360e984241a80077ce986a9182f0de (patch)
treecc6848cb5d40dc9e0453b73bacc820d116faa4fc /content/handlers/javascript/duktape/dukky.h
parent35e9b5de6d59436568d9cbb951c98e716716bd7e (diff)
downloadnetsurf-c17e588b66360e984241a80077ce986a9182f0de.tar.gz
netsurf-c17e588b66360e984241a80077ce986a9182f0de.tar.bz2
Javascript: Support setTimeout and friends
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'content/handlers/javascript/duktape/dukky.h')
-rw-r--r--content/handlers/javascript/duktape/dukky.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/handlers/javascript/duktape/dukky.h b/content/handlers/javascript/duktape/dukky.h
index 1a01a518b..7e8a7867c 100644
--- a/content/handlers/javascript/duktape/dukky.h
+++ b/content/handlers/javascript/duktape/dukky.h
@@ -47,4 +47,7 @@ typedef enum {
void dukky_shuffle_array(duk_context *ctx, duk_uarridx_t idx);
+/* pcall something, and if it errored, also dump the error to the log */
+duk_int_t dukky_pcall(duk_context *ctx, duk_size_t argc, bool reset_timeout);
+
#endif