@@ -12497,7 +12497,7 @@ int JS_ToInt64(JSContext *ctx, int64_t *pres, JSValueConst val)
1249712497
1249812498int JS_ToInt64Ext(JSContext *ctx, int64_t *pres, JSValueConst val)
1249912499{
12500- if (JS_IsBigInt(ctx, val))
12500+ if (JS_IsBigInt(val))
1250112501 return JS_ToBigInt64(ctx, pres, val);
1250212502 else
1250312503 return JS_ToInt64(ctx, pres, val);
@@ -46894,7 +46894,7 @@ static JSValue js_json_check(JSContext *ctx, JSONStringifyContext *jsc,
4689446894 JSValue v;
4689546895 JSValueConst args[2];
4689646896
46897- if (JS_IsObject(val) || JS_IsBigInt(ctx, val)) {
46897+ if (JS_IsObject(val) || JS_IsBigInt(val)) {
4689846898 JSValue f = JS_GetProperty(ctx, val, JS_ATOM_toJSON);
4689946899 if (JS_IsException(f))
4690046900 goto exception;
@@ -53042,13 +53042,13 @@ static JSValue js_bigint_constructor(JSContext *ctx,
5304253042
5304353043static JSValue js_thisBigIntValue(JSContext *ctx, JSValueConst this_val)
5304453044{
53045- if (JS_IsBigInt(ctx, this_val))
53045+ if (JS_IsBigInt(this_val))
5304653046 return js_dup(this_val);
5304753047
5304853048 if (JS_VALUE_GET_TAG(this_val) == JS_TAG_OBJECT) {
5304953049 JSObject *p = JS_VALUE_GET_OBJ(this_val);
5305053050 if (p->class_id == JS_CLASS_BIG_INT) {
53051- if (JS_IsBigInt(ctx, p->u.object_data))
53051+ if (JS_IsBigInt(p->u.object_data))
5305253052 return js_dup(p->u.object_data);
5305353053 }
5305453054 }
0 commit comments