Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions mquickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2117,7 +2117,7 @@ JSValue JS_GetException(JSContext *ctx)
{
JSValue obj;
obj = ctx->current_exception;
ctx->current_exception = JS_UNDEFINED;
ctx->current_exception = JS_UNINITIALIZED;
return obj;
}

Expand Down Expand Up @@ -3610,7 +3610,7 @@ JSContext *JS_NewContext2(void *mem_start, size_t mem_size, const JSSTDLibraryDe
}


ctx->current_exception = JS_UNDEFINED;
ctx->current_exception = JS_UNINITIALIZED;
#ifdef DEBUG_GC
/* set the dummy block at the start of the memory */
{
Expand Down Expand Up @@ -5583,7 +5583,7 @@ JSValue JS_Call(JSContext *ctx, int call_flags)
/* exception caught by a 'catch' in the
current function */
*--sp = ctx->current_exception;
ctx->current_exception = JS_NULL;
ctx->current_exception = JS_UNINITIALIZED;
byte_code = JS_VALUE_TO_PTR(b->byte_code);
pc = byte_code->buf + JS_VALUE_GET_SPECIAL_VALUE(val2);
goto restart;
Expand Down