module Duktape::API::Call
Overview
NOTE These methods are all equivalent to the Duktape
pcall_xxx
functions because we wish to safely return
from errors.
Direct including types
Defined in:
duktape/api/call.crConstant Summary
-
ERRORS =
{error: LibDUK::Ret::Error, eval: LibDUK::Ret::EvalError, range: LibDUK::Ret::RangeError, reference: LibDUK::Ret::ReferenceError, syntax: LibDUK::Ret::SyntaxError, type: LibDUK::Ret::TypeError, uri: LibDUK::Ret::UriError}
Instance Method Summary
- #call(nargs : Int32)
- #call_failure(error = :error)
- #call_method(nargs : Int32)
- #call_prop(index : LibDUK::Index, nargs : Int32)
- #call_success
-
#new(nargs : Int32)
Equivalent to duk_pnew (protected call)
- #return(ret_val : Int32)
- #return_undefined
-
#safe_call(nargs : Int32 = 0, nrets : Int32 = 0, &block : LibDUK::Context -> Int32)
Experimental
Instance Method Detail
Experimental