Skip to content

Commit ab5ed28

Browse files
committed
Remove the unused ctx from JS_NewNumber
1 parent 8232012 commit ab5ed28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

quickjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ static JSValue js_number(double d)
13881388
return js_float64(d);
13891389
}
13901390

1391-
JSValue JS_NewNumber(JSContext *ctx, double d)
1391+
JSValue JS_NewNumber(double d)
13921392
{
13931393
return js_number(d);
13941394
}

quickjs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ static js_force_inline JSValue JS_NewUint32(uint32_t val)
678678
return v;
679679
}
680680

681-
JS_EXTERN JSValue JS_NewNumber(JSContext *ctx, double d);
681+
JS_EXTERN JSValue JS_NewNumber(double d);
682682
JS_EXTERN JSValue JS_NewBigInt64(JSContext *ctx, int64_t v);
683683
JS_EXTERN JSValue JS_NewBigUint64(JSContext *ctx, uint64_t v);
684684

0 commit comments

Comments
 (0)