Skip to content

Commit 395ef80

Browse files
committed
Fix missing OOM check (my bad)
1 parent 2605297 commit 395ef80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

quickjs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57810,6 +57810,8 @@ JSValue JS_PRINTF_FORMAT_ATTR(3, 4) JS_ThrowDOMException(JSContext *ctx, const c
5781057810
obj = js_domexception_constructor0(ctx, JS_UNDEFINED, 2, argv, false);
5781157811
JS_FreeValue(ctx, js_message);
5781257812
JS_FreeValue(ctx, js_name);
57813+
if (JS_IsException(obj))
57814+
goto end;
5781357815
build_backtrace(ctx, obj, JS_UNDEFINED, NULL, 0, 0, 0);
5781457816
JS_Throw(ctx, obj);
5781557817
end:

0 commit comments

Comments
 (0)