Remove duplicate JS_GetBigInt call (#188)

This commit is contained in:
Ben Noordhuis 2023-12-09 14:54:13 +01:00 committed by GitHub
parent f7d2169999
commit d17129035d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47388,7 +47388,6 @@ static JSValue js_bigint_asUintN(JSContext *ctx,
res = JS_NewBigInt(ctx); res = JS_NewBigInt(ctx);
if (JS_IsException(res)) if (JS_IsException(res))
return JS_EXCEPTION; return JS_EXCEPTION;
r = JS_GetBigInt(res);
a = JS_ToBigInt(ctx, &a_s, argv[1]); a = JS_ToBigInt(ctx, &a_s, argv[1]);
if (!a) { if (!a) {
JS_FreeValue(ctx, res); JS_FreeValue(ctx, res);