Skip to content

Commit 882f885

Browse files
committed
Silence coverity error due to return value of JS_ToFloat64
Fixes: #890
1 parent 1628298 commit 882f885

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
@@ -6657,6 +6657,8 @@ static void build_backtrace(JSContext *ctx, JSValue error_val, JSValue filter_fu
66576657
saved_exception = JS_GetException(ctx);
66586658

66596659
// Extract stack trace limit.
6660+
// Ignore error since it sets d to NAN anyway.
6661+
// coverity[check_return]
66606662
JS_ToFloat64(ctx, &d, ctx->error_stack_trace_limit);
66616663
if (isnan(d) || d < 0.0)
66626664
stack_trace_limit = 0;

0 commit comments

Comments
 (0)