|
|
@ -410,7 +410,7 @@ DUK_EXTERNAL const char *duk_base64_encode(duk_hthread *thr, duk_idx_t idx) { |
|
|
|
return ret; |
|
|
|
|
|
|
|
type_error: |
|
|
|
DUK_ERROR_TYPE(thr, DUK_STR_ENCODE_FAILED); |
|
|
|
DUK_ERROR_TYPE(thr, DUK_STR_BASE64_ENCODE_FAILED); |
|
|
|
return NULL; /* never here */ |
|
|
|
} |
|
|
|
|
|
|
@ -454,7 +454,7 @@ DUK_EXTERNAL void duk_base64_decode(duk_hthread *thr, duk_idx_t idx) { |
|
|
|
return; |
|
|
|
|
|
|
|
type_error: |
|
|
|
DUK_ERROR_TYPE(thr, DUK_STR_DECODE_FAILED); |
|
|
|
DUK_ERROR_TYPE(thr, DUK_STR_BASE64_DECODE_FAILED); |
|
|
|
} |
|
|
|
|
|
|
|
DUK_EXTERNAL const char *duk_hex_encode(duk_hthread *thr, duk_idx_t idx) { |
|
|
@ -593,7 +593,7 @@ DUK_EXTERNAL void duk_hex_decode(duk_hthread *thr, duk_idx_t idx) { |
|
|
|
return; |
|
|
|
|
|
|
|
type_error: |
|
|
|
DUK_ERROR_TYPE(thr, DUK_STR_DECODE_FAILED); |
|
|
|
DUK_ERROR_TYPE(thr, DUK_STR_HEX_DECODE_FAILED); |
|
|
|
} |
|
|
|
|
|
|
|
#if defined(DUK_USE_JSON_SUPPORT) |
|
|
|