Signed-off-by: zhangyouyou <zhangyouyou2@huawei.com>
This commit is contained in:
zhangyouyou 2022-03-24 15:50:18 +08:00
parent c14868b51e
commit c65542e984

View File

@ -353,7 +353,7 @@ JSTaggedValue SlowRuntimeStub::Mod2Dyn(JSThread *thread, JSTaggedValue left, JST
JSHandle<BigInt> leftBigint(valLeft);
JSHandle<BigInt> rightBigint(valRight);
return BigInt::Remainder(thread, leftBigint, rightBigint).GetTaggedValue();
}
}
return ThrowTypeError(thread, "Cannot mix BigInt and other types, use explicit conversions");
}
double dLeft = valLeft->GetNumber();