Skip to content

Commit 9709afb

Browse files
committed
[js] Fix bug when passing a int argument to uint64 parameter
1 parent ec5ff32 commit 9709afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vm/js/nqp-runtime/runtime.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ exports.arg_i64 = function(ctx, contedArg) {
563563

564564
exports.arg_u64 = function(ctx, contedArg) {
565565
if (contedArg instanceof NativeIntArg) {
566-
return BigInt.asUintN(64, contedArg.value);
566+
return BigInt.asUintN(64, BigInt(contedArg.value));
567567
} else if (contedArg instanceof NativeUIntArg) {
568568
return BigInt(contedArg.value);
569569
} else if (contedArg instanceof NativeNumArg) {

0 commit comments

Comments
 (0)