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: