Distinguish explicit NULL arguments from omitted defaults
Build / AerScript (push) Successful in 42s
Build / AerScript (push) Successful in 42s
This commit is contained in:
@@ -5724,13 +5724,6 @@ Resume:
|
||||
n = 0;
|
||||
while(pArg < pTos) {
|
||||
if(n < SySetUsed(&pVmFunc->aArgs)) {
|
||||
if((pArg->nType & MEMOBJ_NULL) && SySetUsed(&aFormalArg[n].aByteCode) > 0) {
|
||||
/* NULL values are redirected to default arguments */
|
||||
rc = VmLocalExec(&(*pVm), &aFormalArg[n].aByteCode, pArg);
|
||||
if(rc == PH7_ABORT) {
|
||||
goto Abort;
|
||||
}
|
||||
}
|
||||
/* Make sure the given arguments are of the correct type */
|
||||
if(aFormalArg[n].nType > 0) {
|
||||
if(aFormalArg[n].nType == SXU32_HIGH) {
|
||||
|
||||
Reference in New Issue
Block a user