We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f73234 commit 4be6773Copy full SHA for 4be6773
1 file changed
src-input/duk_error.h
@@ -181,6 +181,10 @@
181
#define DUK_ERROR_UNSUPPORTED(thr) do { \
182
DUK_ERROR((thr), DUK_ERR_ERROR, DUK_STR_UNSUPPORTED); \
183
} while (0)
184
+#define DUK_DCERROR_UNSUPPORTED(thr) do { \
185
+ DUK_ERROR_UNSUPPORTED((thr)); \
186
+ return 0; \
187
+ } while (0)
188
#define DUK_ERROR_ERROR(thr,msg) do { \
189
duk_err_error((thr), DUK_FILE_MACRO, (duk_int_t) DUK_LINE_MACRO, (msg)); \
190
@@ -269,6 +273,10 @@
269
273
270
274
duk_err_error((thr)); \
271
275
276
277
+ DUK_UNREF((thr)); \
278
+ return DUK_RET_ERROR; \
279
272
280
281
282
0 commit comments