From f2ca1e84502ba61a0f6204ce3ebb72732b0a8e71 Mon Sep 17 00:00:00 2001 From: Sami Vaarala Date: Sun, 6 Apr 2014 23:40:49 +0300 Subject: [PATCH] update protected/safe api calls to omit errhandler_index --- website/api/duk_pcall.txt | 13 +++---------- website/api/duk_pcall_method.txt | 4 ++-- website/api/duk_pcall_prop.txt | 4 ++-- website/api/duk_safe_call.txt | 12 +++--------- 4 files changed, 10 insertions(+), 23 deletions(-) diff --git a/website/api/duk_pcall.txt b/website/api/duk_pcall.txt index 9c61ca74..d5354b60 100644 --- a/website/api/duk_pcall.txt +++ b/website/api/duk_pcall.txt @@ -1,5 +1,5 @@ =proto -int duk_pcall(duk_context *ctx, int nargs, int errhandler_index); +int duk_pcall(duk_context *ctx, int nargs); =stack [ ... func! arg1! ...! argN! ] -> [ ... retval! ] (if success, return value == 0) @@ -9,11 +9,7 @@ int duk_pcall(duk_context *ctx, int nargs, int errhandler_index);

Call target function func with nargs arguments (not counting the function itself). The function and its arguments are replaced by a single return value or a single error value. -An error thrown during the function call is caught. errhandler_index points -to an error handler function in the current stack frame (below call arguments) which -can modify an error value before it is thrown; to use the default error handler, -set errhandler_index to DUK_INVALID_INDEX.

-

+An error thrown during the function call is caught.

The return value is: