|
@ -87,17 +87,7 @@ typedef struct duk_number_list_entry duk_number_list_entry; |
|
|
|
|
|
|
|
|
<h2>Error codes</h2> |
|
|
<h2>Error codes</h2> |
|
|
<pre class="c-code"> |
|
|
<pre class="c-code"> |
|
|
/* Internal error codes */ |
|
|
|
|
|
#define DUK_ERR_NONE 0 /* no error (e.g. from duk_get_error_code()) */ |
|
|
#define DUK_ERR_NONE 0 /* no error (e.g. from duk_get_error_code()) */ |
|
|
#define DUK_ERR_UNIMPLEMENTED_ERROR 50 /* UnimplementedError */ |
|
|
|
|
|
#define DUK_ERR_UNSUPPORTED_ERROR 51 /* UnsupportedError */ |
|
|
|
|
|
#define DUK_ERR_INTERNAL_ERROR 52 /* InternalError */ |
|
|
|
|
|
#define DUK_ERR_ALLOC_ERROR 53 /* AllocError */ |
|
|
|
|
|
#define DUK_ERR_ASSERTION_ERROR 54 /* AssertionError */ |
|
|
|
|
|
#define DUK_ERR_API_ERROR 55 /* APIError */ |
|
|
|
|
|
#define DUK_ERR_UNCAUGHT_ERROR 56 /* UncaughtError */ |
|
|
|
|
|
|
|
|
|
|
|
/* Ecmascript E5 specification error codes */ |
|
|
|
|
|
#define DUK_ERR_ERROR 100 /* Error */ |
|
|
#define DUK_ERR_ERROR 100 /* Error */ |
|
|
#define DUK_ERR_EVAL_ERROR 101 /* EvalError */ |
|
|
#define DUK_ERR_EVAL_ERROR 101 /* EvalError */ |
|
|
#define DUK_ERR_RANGE_ERROR 102 /* RangeError */ |
|
|
#define DUK_ERR_RANGE_ERROR 102 /* RangeError */ |
|
@ -110,13 +100,6 @@ typedef struct duk_number_list_entry duk_number_list_entry; |
|
|
<h2>Return codes from Duktape/C functions</h2> |
|
|
<h2>Return codes from Duktape/C functions</h2> |
|
|
<pre class="c-code"> |
|
|
<pre class="c-code"> |
|
|
/* Return codes for C functions */ |
|
|
/* Return codes for C functions */ |
|
|
#define DUK_RET_UNIMPLEMENTED_ERROR (-DUK_ERR_UNIMPLEMENTED_ERROR) |
|
|
|
|
|
#define DUK_RET_UNSUPPORTED_ERROR (-DUK_ERR_UNSUPPORTED_ERROR) |
|
|
|
|
|
#define DUK_RET_INTERNAL_ERROR (-DUK_ERR_INTERNAL_ERROR) |
|
|
|
|
|
#define DUK_RET_ALLOC_ERROR (-DUK_ERR_ALLOC_ERROR) |
|
|
|
|
|
#define DUK_RET_ASSERTION_ERROR (-DUK_ERR_ASSERTION_ERROR) |
|
|
|
|
|
#define DUK_RET_API_ERROR (-DUK_ERR_API_ERROR) |
|
|
|
|
|
#define DUK_RET_UNCAUGHT_ERROR (-DUK_ERR_UNCAUGHT_ERROR) |
|
|
|
|
|
#define DUK_RET_ERROR (-DUK_ERR_ERROR) |
|
|
#define DUK_RET_ERROR (-DUK_ERR_ERROR) |
|
|
#define DUK_RET_EVAL_ERROR (-DUK_ERR_EVAL_ERROR) |
|
|
#define DUK_RET_EVAL_ERROR (-DUK_ERR_EVAL_ERROR) |
|
|
#define DUK_RET_RANGE_ERROR (-DUK_ERR_RANGE_ERROR) |
|
|
#define DUK_RET_RANGE_ERROR (-DUK_ERR_RANGE_ERROR) |
|
|