module

Duktape::API::Call

NOTE: These methods are all equivalent to the Duktape pcall_xxx functions because we wish to safely return from errors.

Constants

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 methods

call(nargs : Int32)
Source
call_failure(error = :error)
Source
call_method(nargs : Int32)
Source
call_prop(index : LibDUK::Index, nargs : Int32)
Source
call_success
Source
new(nargs : Int32)

Equivalent to duk_pnew (protected call)

Source
return(ret_val : Int32)
Source
return_undefined
Source
safe_call(nargs : Int32 = 0, nrets : Int32 = 0, &block : LibDUK::Context -> Int32)

Experimental

Source